3 ms·
Confession time: i still have some apps with salted md5 hashed passwords
by tudorconstantin 13y ago
Confession time: i still have some apps with salted md5 hashed passwords
- thirsteh 13y agoYou shouldn't be using any of the functions on that page directly, anyway: http://throwingfire.com/storing-passwords-securely/#notpasswordhashes http://throwingfire.com/storing-passwords-securely/#notpassw...
- zanny 13y agoBut it does matter, because if you can exploit a weakness in the hash function you can figure out the salt, strip it, and then use your precomputed dictionary.
- deleted 13y ago[deleted]
- thirsteh 13y agoThat's not really how it works. Either way, you shouldn't be using just a regular "hash function" anyway. Even basic constructions like PBKDF2 use HMAC constructions where SHA1 and even MD5 are still pretty safe to use (although not very computationally expensive.)
- Cyranix 13y agoThe first step is accepting that you have a problem. Fortunately, it's fairly straightforward to fix the problem! Previous discussion of how to handle this scenario: https://news.ycombinator.com/item?id=2689149 https://news.ycombinator.com/item?id=2689149
- nly 13y agoSo migrate? Hash the hashes with Bcrypt or PBKDF2. Bcrypt(MD5(password)) is just as effective as Bcrypt(password) at knocking brute force attempts on the head.
- finnw 13y agoUnless the Bad Guys already have the MD5 hashes
- tacticus 13y agoI was supporting an installation with md5 unsalted passwords let us hang our heads in shame.