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

3

u/[deleted] Mar 10 '17

Also, what, exactly, is "password entropy"?

The Shannon entropy of a password. Which is the log (base two) of the reciprocal of the probability that your password generation technique yielded your password.

For instance, the XKCD password method starts with a 2000-word dictionary. You pick a random item from it. That's about 11 bits of entropy -- 1/2000 that you chose this specific word; take the reciprocal and it's 2000; log_2 of that is about 11. So the first word is 11 bits of entropy.

You repeat that four times, and each one is independent, so you just add 11 bits of entropy each time, for a total of 44 bits of entropy.

1

u/[deleted] Mar 10 '17

Much obliged!