yikes, a php security site telling people to use sha1().<p>don't use sha1 hashes for storing passwords, use bcrypt. <a href="http://www.openwall.com/phpass/" rel="nofollow">http://www.openwall.com/phpass/</a><p>or a quick code snippet:<p><pre><code> for ($salt = "", $x = 0; $x++ < 40; $salt .= chr(mt_rand(0,255)))
;
$hashed = crypt($password, '$2a$08$' . hash("whirlpool", $salt));</code></pre>