This is Sofa420's TypePad Profile.
Join TypePad and start following Sofa420's activity
Sofa420
Recent Activity
I usually use this function for password generation.
var generatePassword = function(username, password){
var passwordData = {}
passwordData.salt = hash(hash(username) + (new Date()).valueOf())
passwordData.password = hash(passwordData.salt + hash(password))
return passwordData
}
Yes, 4 hashes may be overdoing it. But this way even if they find a collision for the hashed password, chances that they'll actually find the plaintext version are slim.
Speed Hashing
Hashes are a bit like fingerprints for data. A given hash uniquely represents a file, or any arbitrary collection of data. At least in theory. This is a 128-bit MD5 hash you're looking at above, so it can represent at most 2128 unique items, or 340 trillion trillion trillion. In reality the...
Sofa420 is now following The Typepad Team
Apr 6, 2012
Subscribe to Sofa420’s Recent Activity
