r/programming • • Jun 02 '17

Hacker, Hack Thyself | Coding Horror

https://blog.codinghorror.com/hacker-hack-thyself/
1.1k Upvotes

205 comments sorted by

View all comments

128

u/yorickpeterse Jun 02 '17

If we want Discourse to be nation state attack resistant, clearly we'll need to do better.

This reminds me a lot of this xkcd: https://xkcd.com/538/

93

u/masklinn Jun 02 '17 edited Jun 02 '17

That's a completely different situation though. The comic is about access to a personal machine, cracking web passwords is about broad identity access: cracking a site/forum's passwords list gives

  • a corpus of current real-world passwords which can be reused (either directly or by extracting patterns from it) for further cracking, that's invaluable: a seminal moment in password cracking was the RockYou leak/crack which provided 32 million real-world passwords

  • pairs of (identity, password), because users commonly reuse passwords identity linking across sites can provide access to email accounts, personal accounts, … which can be used for all manners of nefarious purposes

0

u/Stoic_stone Jun 02 '17

Doesn't hashing passwords protect against that?

14

u/masklinn Jun 02 '17 edited Jun 02 '17

Depends on the hash, which is the essay's point.

A non-PRF cryptographic hash (e.g. straight MD5 or SHA) can be cracked at a few billion hashes/second. Note that MD5 and SHAs are in 4~5 figures million hashes per second per GPU. A proper KDF with a proper work factor (e.g. last time I checked Django used PBKDF2-SHA256 with 36000 iterations) is 4~5 figures hashes per second.

0

u/[deleted] Jun 02 '17

[deleted]

→ More replies (4)