by eCa · 13y ago · 0 comments
An identical password for two different accounts should never encrypt to the same string.
I'm not sure how you can keep the salt random and secret, and still use it when users log in?
I can't see why a user id could not be used as a salt though.
If Adobe has taken that approach, the intruders would have all the salts, but they would not be able to do this attack of seeing how many people use the same password.
However, Snowden's silly password hint would still have given the game away. If that is in fact him.
Exactly because you need it to calculate the hash and compare it.
If you want to get more security on top of that out of your salt, the only thing I can think is to add some security by obscurity on top: If it doesn't matter which field in the DB you use, just pick an unlikely one and keep secret which one it is. Might be id, email, favourite pet, or something else. Just don't forget to update the hash when the user changes that field.