So for the password encryption (or hashing) i created a function that i think it's good in case hackers get your database records, they won't be able to see any passwords.
Here it is:
Code: Select all
function Encrypt($string)
{
$eText = md5(md5(md5($string)));
$eText = substr($eText, 0, 20);
$eText = md5($eText);
return $eText;
}
I don't know if it's a good way to hide out passwords, but i guess those "rainbow databases" don't have this in their records.. so yeah