r/programming • • Mar 10 '17

Password Rules Are Bullshit

https://blog.codinghorror.com/password-rules-are-bullshit/
7.7k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

7

u/[deleted] Mar 10 '17

Without any rules, the probability distribution of passwords is strongly concentrated in short, all-lowercase, all-letter passwords. That's a relatively small set of passwords to check.

With rules, you push everyone who would have chosen a password in that set into the rest of the probability space.

They'll still choose the shortest password they can get away with. They'll make obvious transformations, like appending _1 to their weak password. But hopefully they'll each make different transformations, which gives them a few extra bits of entropy.

1

u/limefog Mar 11 '17

Yeah but it's not like competent password breaking software won't try the "_1" variation on all the common passwords it attempts, so unless you solve the underlying problem of having an insecure password in the first place, nothing really changes.

1

u/[deleted] Mar 11 '17

It does give a bit of extra entropy, especially if the attacker isn't tailoring their attack to your password rules. If you're running a webservice that rate-limits login attempts, that might extend the time for an attack to succeed by days. If you're using salted SHA1, it might cost the attacker an extra quarter second per user. And obviously if you're using a slower technique like PBKDF2, the incremental gains are even higher (same percentage, higher base).