Re:How To Safely Store A Password
by tptacek on Tuesday December 14, 2010 @02:13PM
(#2005316)
For what it's worth: this is essentially PBKDF2.
[ Parent
| on HN ]
Actually, it's essentially PBKDF1, but that's close enough for non-cryptographers.
Shit, you're right. (PBKDF2 generates arbitrary-length output, which is what you want from a key derivation function, but maybe not something you care about for a password hash).
Here's a version that's much easier to read than the spec:
https://github.com/emerose/pbkdf2-ruby/blob/master/lib/pbkdf...
I should stop saying PBKDF2 and just go back to saying PBKDF.