News for hackers. Stuff that matters.
Re:Storing Passwords Securely by wtracy on Wednesday June 06, 2012 @09:29PM (#4077122)
Every salt example I've run across until now used the same salt for every password in the database. Obviously I can disregard those examples!

Thanks for bringing this up--the concept of salt makes a lot more sense to me now.

Re:Storing Passwords Securely by mcherm on Thursday June 07, 2012 @02:34PM (#4080579)
Using the same salt for every password in the database protects against an attacker using a pre-computed dictionary ("rainbow tables" are something like this) to attack your stored hash values. Using (and storing) a separate salt for each password protects against that and ALSO protects against the attacker building a dictionary of common passwords with a certain salt and then using that dictionary to crack ALL the passwords in the database at once.

So one-salt-per-user is clearly better, but one-salt-for-all is still better than no-salt-at-all.

Re:Storing Passwords Securely by lhnn on Wednesday June 06, 2012 @10:28PM (#4077303)
Ya, that's silly.

A common and simple password setup is hash(username+password) or hash(private_account_attribute+password).

Also, use bcrypt/scrypt/similar.

Re:Storing Passwords Securely by masklinn on Thursday June 07, 2012 @05:59AM (#4078250)
> Ya, that's silly.

Not exactly. Having a salt at all mitigates rainbow table attacks, having a unique salt per password also limits brute-force attacks (you can't brute-force the whole table trying out cleartexts with a given salt, you have to brute-force each password individually).

Having a global unique salt is already better than no salt at all.

Re:Storing Passwords Securely by varikin on Wednesday June 06, 2012 @10:39PM (#4077337)
I have heard of doing both, though I have not seen it yet in production. It gives the benefit of having to get the code and the database while also requiring dictionaries to be build per password.
Re:Storing Passwords Securely by tedunangst on Thursday June 07, 2012 @12:25AM (#4077602)
I think the considered opinion of "the people in the know" is that getting the code is just not that hard, and the global secret technique offers more illusory security than real security.