3 ms·
PASS column = MD5(MD5(plaintext_pass) + salt) SALT column = salt Is the way used in most distributable web applications.
by ComputerGuru 18y ago
PASS column = MD5(MD5(plaintext_pass) + salt)
SALT column = salt
Is the way used in most distributable web applications.
- deleted 18y ago[deleted]
- jf 18y agoI think what you actually want is: PASS column = HMAC(plaintext_pass, salt) I might be wrong? As I understand it there are issues with MD5(MD5(password) + salt) that HMAC avoids. I'm still not 100% sure I understand the difference, but I think that is what the wikipedia article on HMAC is saying: http://en.wikipedia.org/wiki/HMAC#Design_principles http://en.wikipedia.org/wiki/HMAC#Design_principles
- judofyr 18y agoHMAC is mostly useful when you want to verify that some text hasn't been altered. The client sends message + HMAC(message, secret) and then the server (which also knows the secret) can verify that no-one has changed the message. Dunno if it helps anything when it comes to salting. Anyone else who knows?
- sachmanb 18y agoI'm a fan of RIPEMD-160 with salts, it is my default hashing algorithm that i use in my apps. MD5 sits alongside CRC checksums for me when I think about security. For symmetric encryption, I like AES.