Toolman

Password length

What each password length is actually worth, in bits and in time, and where the useful range ends.

Eight characters is the answer to a 1990s question

It is still what most password policies ask for, and it has not been adequate for a long time. A random eight-character password is 51.5 bits and falls to a fast offline attack in 27 minutes. Sixteen characters is 103.1 bits and the same attack takes 171 billion years.

The gap is not a slope, it is a cliff, because entropy grows linearly with length and the search space grows exponentially with entropy. Four more characters multiplies the work by 57,289,761.

Every length

LengthEntropyFast offlineBcryptRate limitedVerdict
638.7 bitsinstantly251 days69 yearsNot usable.
851.5 bits27 minutes5.2 thousand years520 thousand yearsThe old minimum, and no longer enough.
1064.4 bits144 days39 million years3.9 billion yearsBorderline.
1277.3 bits3.0 thousand years298 billion yearslonger than the universe has existed, by a wide marginThe practical minimum for anything that matters.
1490.2 bits23 million yearslonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginComfortable.
16103.1 bits171 billion yearslonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginThe sensible default.
18116.0 bitslonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginBeyond the useful range.
20128.9 bitslonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginSymbolic.
24154.6 bitslonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginWell past any threat.
32206.2 bitslonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginlonger than the universe has existed, by a wide marginArbitrary.

Two characters equal one word

A keyboard character chosen at random from 87 possibilities carries 6.443 bits. A word chosen at random from a 7,776-word diceware list carries 12.925. Two characters is 12.89 bits and one word is 12.92 — within half a per cent.

So a 12-character password and a 6-word passphrase are the same strength, and the passphrase is enormously easier to type on a phone. Neither is better; they are the same thing measured differently.

The number that is not on this page

Every figure here assumes every character was chosen at random. A password a person invented carries a small fraction of the entropy its length implies, because people substitute predictably — a 3 for an E, an exclamation mark at the end, a year that is either this one or a birthday. Attackers model that, and the models are good.

Which makes the practical advice short: let a generator choose, and let a manager remember. The length only means what this page says it means if you did not pick the characters yourself.

Password generator · Hash generator