The salt methods will be like so:
PHP Code:
/* SALTING - This will further secure the passwords */ $salty[1] = md5("s1"); $salty[2] = sha1("s2"); $salty[3] = md5("s3"); $salty[4] = sha1("s4");
Where it has s1, s2, s3, s4, the user of this script will be able to change the salts using a randomly generated, MD5 encrypted, salt. Like so:
PHP Code:
Replace <b><u>s1</u></b> with: <b><?php echo(sha1(rand(123456, 654321)));?><br /></b> Replace <b><u>s2</u></b> with: <b><?php echo(md5(rand(54321, 987654321)));?></b><br /> Replace <b><u>s3</u></b> with: <b><?php echo(sha1(rand(1234567, 7654321)));?><br /></b> Replace <b><u>s4</u></b> with: <b><?php echo(md5(rand(54321, 987654321)));?></b><br /><br /><br />
The little script above, was taken from the install.php file, where the installer can manually generate salts to be placed into the encrypt.php file. In a later version, there will be a automatic install script, where it will insert custom SALT's and RANDOM encryption/hash methods. By doing so will make the script much more secure, because everyone won't know the exact method used without looking at the source. What I mean by this is that it will be more secure, that is basically it! In the near future, I will have a fully working lockdown script, hopefully I go through with this. What it will do is allow the installer to locate where the passwords are installed along with more information, for example ID, and it will allow the site owner to do an emergency lock-down witch will save the ID and Password hashes into our secured databases and it will then delete the passwords from the database. This is good for website owners who need a quick and efficient backup of passwords without hackers gaining access to them! This is only a idea, and may not be done, but I will have an attempt at it some other time. For now, I have been cleaning the code, a little bit, explaining what things do using /* */ & <!-- --> - I will edit the thread soon, and release V1.6.
Version 1.6 download: PHPPasswordEncryptionv1.6.rar