8 points · by cbhl · 14y ago · 6 comments
His arguments:
1) If the salts are stored in the database with the hashes, wouldn't it still be possible to brute-force/attack the salt+hash combination?
2) In the context of [0], don't advances in parallel computing (particularly wrt. "general-purpose" computing on GPUs) make it relatively easy to generate a rainbow table for each salt encountered (compared to, say, two, or even seven years ago)?
[0] http://stackoverflow.com/questions/5252943/why-we-use-the-salt-to-secure-our-passwords
With no salt or a common salt, you can generate the hashes for every common password once. If you have a long salt for each password, you have to generate the hashes for every common password for every password, which would take years longer to do. If your goal is to hack one individual account, the salt won't help. But to hack accounts in general, it will help.
I'm not an expert, but that's my understanding of it. Anyone please feel free to correct me if I'm wrong.
This is how I understand it. Bcrypt uses Blowfish. Blowfish is not a hashing algorithm but an encryption algorithm. This meaning, you can encrypt something, and then, decrypt it back to plain text.
SHA512 on the other hand is a hashing algorithm which should mean that it's impossible to revert. At the end of the day, everything is crack able through brute force. Just try and make it harder for the hacker. You could also add additional salts to a password, defined in code. Or add the salt after the 2nd character of the users inputted password for example. This however is only handy if a hacker hasnt gained access to your source code but only to your database. Additionally, encrypting your sourcecode where the algorithm is implemented adds an additional security layer. There are tons of ways to make it crazy hard to crack a password.
http://blog.mozilla.org/webdev/2012/06/08/lets-talk-about-pa...
tl;dr Keep secret key on app server (ie on different server than database), hash it and password with HMAC-SHA256, then hash that with bcrypt for storage in database. Secret key is in a dictionary which allows you to can change the key periodically and deprecate old or questionable keys.
That makes the pre-generation of these rainbow tables quite impossible, especially with how long many salts are.
Now of course you can start generation when you have the salt but that doesn't really make any difference between just cracking the passwords as you go.
Whether or not it would have helped LinkedIN I can't really say but it probably would have been a bit better as people woulnd't have been able to compare the list to known passwords as quickly (but probably not much of a difference there if they knew the salt).
Some say that this is most useful in giving the company a more sizeable window in which to react (e.g. force password changes).