Every dayEveryday Use

Password Strength
checker.

Password strength comes from how an attacker would guess it, not how odd it looks.

How it's worked out

The first figure is entropy, a count of how many doublings of work it takes to find a password by trying everything. Each extra bit doubles the number of guesses.

bits\displaystyle \text{bits}=L×log2⁡(C)\displaystyle {}= L \times \log_2(C)

L is the length and C is the size of the character set. The set grows by 26 for lowercase, 26 for capitals, 10 for digits and 33 for printable symbols and the space, which is how a full keyboard reaches 95. Any character outside that adds a flat 100, a rough allowance and not a measured figure.

That sum is only true for characters picked at random, and most people do not pick that way. So the checker takes bits away for what attackers try first: a short sample of the most common passwords from public breach lists such as the NCSC top 100,000, keyboard runs, common words with letter swaps, anything that looks like a year, and the capital, word, number, symbol shape.

average time\displaystyle \text{average time}=2bits÷2guesses per second\displaystyle {}= \frac{2^{\text{bits}} \div 2}{\text{guesses per second}}

On average an attacker lands on the password halfway through the list, hence the division by 2. The result is shown at four guessing rates. These rates are assumptions chosen to show scale, and they do not measure any real attacker. Rate limits are why an online attack is so slow, and fast hashes are why an offline one can try billions of guesses a second.

  • Online attack, rate-limited (100 guesses an hour)
  • Online attack, no limits (10 guesses a second)
  • Offline, slow hash such as bcrypt (10 thousand a second)
  • Offline, fast hash on GPUs (10 billion a second)

Worked examples

Summer2024# on an old email account

This one has 11 characters and all four character types, so a simple meter would pass it. By length and character set alone it scores 72.3 bits. The checker finds a common word, a year and the most popular shape, and drops it to 43.3 bits, which it labels Fair.

Average time to find Summer2024#
AttackTime
Online attack, rate-limited (100 guesses an hour)6.0 million years
Online attack, no limits (10 guesses a second)17 thousand years
Offline, slow hash such as bcrypt (10 thousand a second)17 years
Offline, fast hash on GPUs (10 billion a second)8.8 minutes

The gap between those rows is the real lesson. Behind a login that limits attempts, the password lasts 6.0 million years. If the site is breached and stored it with a fast hash (a quick one-way scramble), it lasts 8.8 minutes. You do not get to choose which of these happens.

The famous correct horse battery staple

The checker counts 28 characters of lowercase letters and spaces and reports 164.7 bits, Very strong. That number is too high, and you should know why. It treats every character as random, and it does not know these are four ordinary words.

The xkcd comic that made the phrase famous counts words instead: four random common words at 11 bits each. That gives 44 bits. At 10,000,000,000 guesses a second, 44 bits falls in 15 minutes on average. It is fine against a login that limits attempts, and it is not fine against a stolen database with a fast hash.

Six words rolled from the EFF long list reach 77.5 bits, and the same rate needs 350 thousand years. Use the passphrase estimate for a real passphrase, because it counts words and list size. Do not use this phrase, or any other one printed online.

A 16-character password from a password manager

This one is random, so the simple formula is honest for once. 16 characters from the full keyboard give 105.1 bits, labeled Very strong, with no warnings. Even at the fast offline rate the average time is longer than the age of the universe.

It also clears the 15-character floor that NIST sets for a password used on its own. You do not need it to be this long to hit a target. Reaching 80 bits takes 13 random characters or 7 random words from a 7,776-word list.

Reading your result

Treat the label as a ceiling. The score can only come down for patterns the checker knows, and its lists are short. Tr0ub4dor&3 scores 72.3 bits and Strong here, while xkcd puts the same password at about 28 bits, because an attacker tries an uncommon word with common swaps early. A high score means no known pattern was found. It does not prove the password is safe.

The five labels run from Very weak under 28 bits to Very strong at 80 bits or more. These bands are this tool's own scale. No standard defines them, so use them to compare two passwords and not as a pass mark.

What the standard asks for. NIST SP 800-63B-4 sets a minimum of 15 characters for a password used alone and 8 when it is part of multi-factor sign-in. It tells services to accept at least 64 characters, to check new passwords against a blocklist, and not to demand mixes of character types or routine changes.

Length moves the answer more than symbols do. At 10,000,000,000 guesses a second, a random 12 lowercase letters take 1.8 months on average. All 95 characters at the same length take 856 thousand years. You reach the same strength with 17 random lowercase letters, which are far easier to type.

Common mistakes

  • Counting on swaps and symbols. The NCSC uses Pa55word! as its example of a password that meets typical rules and is still guessable. This checker rates it Fair, at 39.1 bits, which shows why the label is only a ceiling.
  • Choosing the words yourself. The word-based figures only hold if a die or a generator picks the words. A line from a song has far less strength than its length suggests. The NCSC suggests three random words as a good compromise, which is 38.8 bits from a 7,776-word list, and the EFF suggests six.
  • Using something personal. A pet, a birthday or a team can score well here, because the checker does not know you. Anyone who has seen your social media does, so change a password like that whatever its label says.
  • Reusing a strong password. No meter can see that you use it elsewhere. A breach at one small site then opens every account that shares it, so the NCSC asks for a separate password on important accounts such as email.
  • Reading a long time as a promise. The times assume guessing. Phishing, malware and a site that stored your password in plain text all skip the guessing, and the score says nothing about them.
  • Testing the real thing on a site you cannot check. This check runs in your browser and nothing is stored or sent, but that is not true of every site. Elsewhere, test a password of the same shape and not the one you use.

Questions people ask

It depends on where the check runs. Here the sum happens in your browser, so the password is not sent, saved or placed in a link. On another site, open the Network panel in your browser tools and type a sample: a request on each key press means it is leaving your device. If you cannot tell, test a password with the same pattern instead of the real one.

Sources