4 ms·
I can't think of any silly comments from my code right now, but I have a new one for you :-) # ...your computer really doesn't care if you seperate the passw
by staunch 19y ago
I can't think of any silly comments from my code right now, but I have a new one for you :-)
# ...your computer really doesn't care if you seperate the password from the nonce with a dash; it's a computer, not a 2nd grade teacher[1]
echo 'MD5(): ' . md5(date('ymdHis', time()) . 'password-is-yummy-salty-safety-' . $pw);
1. http://www.matasano.com/log/958/enough-with-the-rainbow-tables-what-you-need-to-know-about-secure-password-schemes/ http://www.matasano.com/log/958/enough-with-the-rainbow-tabl...
- matth 19y agoMy computer also doesn't care if I put a space between each concatenation operator, but I do. :)
- marcus 19y agoActually using time as an additional salt is a very healthy practice, just make sure you store the time you use. It reduces collisions.
- sohail 19y agoYou might as well use random salts.