Toolbox Hub
Security12 min read

Password Strength Meters Measure the Wrong Thing

A line-by-line look at what a browser password scorer and a client-side password generator actually compute: why rule-based scores reward predictable patterns, what real entropy depends on, and where the random number generation is genuinely sound.

What this guide covers

  • 1. What the scorer actually counts
  • 2. What an attacker's cost function looks like
  • 3. What a generator has to get right instead
  • 4. Hashing is a separate question entirely
  • 5. Frequently asked questions
  • 6. The one-line version

Type `aaaaaaaaaaaaaaaa1!` into a typical strength meter and it lights up green. Type `correct horse battery staple` and it may score lower. The first password is one of the worst choices a person could make — a single repeated character with two predictable suffixes — while the second is four unrelated common words. The meter is not malfunctioning. It is answering a different question from the one users think they asked.

Rules-based meters measure which character classes appear in a string. Attackers measure how many guesses it takes to find the string. Those two quantities are only loosely related, and the gap between them is where most bad password advice lives.

What the scorer actually counts

The Password Strength Checker on this site is about twenty lines long, which makes it unusually easy to audit. It starts at zero and adds one point for each condition that is true:

  • length ≥ 8
  • length ≥ 12
  • contains a lowercase `a-z` character
  • contains an uppercase `A-Z` character
  • contains a digit `0-9`
  • contains anything outside `[a-zA-Z0-9]`
  • length ≥ 16

Seven independent checks, so the score runs from 0 to 7 and maps to a label from Very Weak through Excellent. Running a few inputs through that exact function gives results worth sitting with:

  • `aaaaaaaaaaaaaaaa1!` — 6 points, labelled Excellent. Eighteen characters, one distinct letter, an exclamation mark.
  • `x7!Kp` — 4 points, labelled Strong. Five characters. A modern GPU cluster exhausts a five-character search space almost instantly.
  • `correct horse battery staple` — 5 points, Very Strong. Twenty-eight characters, no uppercase, no digits, no symbols, but four genuinely independent words.
  • `Tr0ub4dor&3` — 5 points, Very Strong. Eleven characters built from a well-known substitution pattern that password-cracking rule sets generate automatically.

Notice that the five-character password is one point away from the twenty-eight-character one. Every rule is binary and every rule is worth the same, so a single uppercase letter buys exactly as much score as four extra words. There is no check for repetition, no check for dictionary words, no check for keyboard walks, no check for dates, and no check against breached-password corpora. A scorer built from character-class rules cannot detect any of those, because none of them change which classes are present.

What an attacker's cost function looks like

A cracker does not try every string in order. It tries the strings people actually choose: leaked password lists, dictionary words with mutation rules, appended years and symbols, keyboard patterns, site names, and phrases from the same language as the target. Only after those are exhausted does it fall back to brute force over a character set. That is why `P@ssw0rd2026!` is a terrible password despite passing all seven checks, while a randomly generated twenty-character string is a good one even if it happens to contain no symbols.

The quantity that matters is entropy under the attacker's model: roughly the base-2 logarithm of the number of candidates the attacker must try before reaching yours. If a password came from a uniform random draw over a 62-character alphabet and is 16 characters long, that is about 95 bits, and no plausible attacker will search it. If it came from a human choosing a word and decorating it, the effective candidate set might be a few million — around 22 bits — regardless of how many character classes the decoration added.

There is one important distinction that makes short passwords less catastrophic than they sound. An online attack — someone guessing against a live login — is bounded by rate limits, account lockouts, CAPTCHAs and multi-factor authentication, so even a modest password can survive if the service is competent. An offline attack happens after a database leak: the attacker has the hash and can try billions of candidates per second with no rate limit at all. Strength meters are often used to reassure people about the first scenario, while the second is the one that actually ends in account takeover. The right defences are different in each case, and neither is a label on a form.

What a generator has to get right instead

If the fix is to stop choosing passwords yourself, the generator has to be trustworthy. The Password Generator here uses `crypto.getRandomValues(new Uint32Array(length))` — the browser's cryptographically secure PRNG, seeded by the operating system — rather than `Math.random()`, whose output is not designed to resist prediction. That distinction matters more than any character-class rule.

Each random 32-bit integer is mapped into the character pool with `pool[n % pool.length]`. Because 2³² is not divisible by most pool sizes, this introduces a small modulo bias: with a 62-character pool, 2³² mod 62 = 4, so four characters are very slightly more likely than the rest. The size of the effect is about 1.4 × 10⁻⁶ percent — far below anything an attacker could exploit, and worth stating precisely rather than either hiding or exaggerating. A rejection-sampling loop would remove it entirely; for a browser utility the current behaviour is a reasonable trade-off, and it is honest to say so.

  • Length dominates everything else. Each extra character multiplies the search space by the pool size. Going from 12 to 20 characters is worth far more than adding symbols to 12.
  • Use a password manager and a unique password per site. Reuse is a bigger real-world risk than almost any weakness in a single generated string.
  • Do not paste credentials into any page you cannot audit. These tools run locally with no network call, which is exactly why their source can be read and checked. A live production secret is still the wrong input for a browser text box.
  • Prefer passphrases when a human must type or remember the value. Four or five randomly chosen uncommon words are both memorable and high-entropy, even though a rule-based meter will call them weak.

Hashing is a separate question entirely

Generating a password and storing a password are different problems. The MD5 Generator exists so you can verify file checksums and inspect hash behaviour; MD5 is a fast, broken general-purpose hash and must never be used for password storage. Real authentication uses a slow, salted, memory-hard password hash such as Argon2id or scrypt, with a unique salt per credential. A 'strong' password stored as an unsalted fast hash is still exposed the moment the database leaks.

It is also worth separating encoding from protection: Base64 and Caesar / ROT13 are reversible transformations with no secret key. They appear in security conversations because tokens are often Base64-encoded, but encoding a password changes its appearance, not its guessability.

Frequently asked questions

Should I trust a green strength meter? Trust it as a format check only. It does not know whether your password is in a breach corpus or built from a common pattern.

Is a 16-character generated password enough? If it came from a CSPRNG over a reasonable alphabet, yes for essentially all ordinary accounts. Length and randomness, not symbol variety, do the work.

Does the generator's modulo bias matter? Not at this scale — about 1.4 × 10⁻⁶ percent for a 62-character pool. It is a correctness detail, not a practical vulnerability.

Are four random words really better than `Tr0ub4dor&3`? Under how crackers actually work, usually yes: they enumerate decorated dictionary words early, while an independently drawn word sequence has a much larger search space.

Does the password leave my browser? No. Generation and scoring run in the page using built-in browser APIs; there is no request to a server.

The one-line version

Stop optimising for the meter. Let a cryptographically secure generator pick a long unique value, keep it in a password manager, and reserve your judgement for the parts the meter cannot see: reuse, phishing, and how the server stores it.

Tools run privately in your browser

Every tool referenced in this guide processes your input in the browser rather than uploading it to a server we operate, and requires no account. A typical single job stays free. Larger batches, history export, and an ad-free page are optional on Pro. A few tools load a processing engine from a CDN on first use; see the privacy policy for details. Browse the full toolbox →

More from the blog