6 ms·
> know how to md5 passwords MD5 is an utterly terrible password hash. It's just about as bad as plaintext. If you're hashing passwords with md5, please fix it
by masklinn 14y ago
> know how to md5 passwords
MD5 is an utterly terrible password hash. It's just about as bad as plaintext. If you're hashing passwords with md5, please fix it and use one of scrypt, bcrypt or PBKDF2 (recommendations are generally in that order) with an acceptable load factor[0]. Go look up mozilla's coding security guide to know how to migrate from a terrible and insecure hash to a secure password hash.
[0] the usual suggestion is that hashing a password should take a few hundred milliseconds on the production hardware, ideally at least half a second and really as much as your users will accept. For scrypt's memory load factor, it should take as much as you can spare.
- pbhjpbhj 14y ago>It's just about as bad as plaintext. // Hyperbole is just about as bad as murder.
- emidln 14y agomd5 passwords lists are plaintext for modern hardware. Well, not exactly plaintext, since you might end up needing to search a couple collisions that also work, but in terms of repurposing the information to attack another system, it's extremely close to plaintext.
- masklinn 14y ago> Hyperbole is just about as bad as murder. It's not hyperbole, a rainbow table will give you instant plaintext for 95% of your passwords. And even if you don't want to use one, an off-the-shelf high-end graphic card (~$500) can compute 10 billion md5 hashes per second, plug that in a not-completely-retarded brute-forcer (jack the ripper, oclhashcat) and you've got pretty much the whole database as plaintext in hours tops. The only passwords you won't have plaintexted are those so complex you know the user doesn't reuse them anyway.
- pbhjpbhj 14y agoReally? 155a7a01308fa0807f722c5984bd91fb --- I find "high-end graphic card (~$500) can compute 10 billion md5 hashes per second" a bit unbelievable [but that's progress for ya]. So that's roughly all possible alphanum characters of stringlen 6, each second. So if my calculation is correct (assuming 60 alphanum chars randomly chosen) that's only 7000 years to calculate all 12 char strings? Yes I realise that md5'ed password strings aren't random nor usually particularly long. Just saying.
- nnnnnnnn 14y agomasklinn was very clear about the difference between an ivory tower example (yours) and the reality of user passwords. It appears you have missed his point.
- pbhjpbhj 14y ago>an ivory tower example (yours) and the reality of user passwords // So you don't think that 'md5 is only as difficult to read as plaintext is actually hyperbole'? If this is the case then surely someone has a plaintext for the hash I wrote - how much more real can one get. It's a simple English language password.
- nnnnnnnn 14y agoI can't get it for you because I have a single laptop at my disposal. However, any meagerly funded criminal enterprise which can front a few tens of thousands of dollars could tell you the answer quite easily. It is not reliable cryptography, and if you provide an incentive to reverse that hash (rather than merely challenging people who have better things to do) then it will be reversed. When it comes to the type of enterprise which cracks systems for profit, it is as good as plaintext.
- pbhjpbhj 14y ago>it will be reversed // I don't doubt it could be reversed relatively easily. It doesn't appear to be in the online rainbow tables I tried. But having to look something up, have domain knowledge, making multiple computations, program a parallelised attack using GPUs or however one approaches such a problem I still contend it's significantly (though not greatly) better than plaintext.