What Is a Passphrase?
A passphrase is a password made of random words instead of random characters: canyon-velvet-drift-8341 rather than Xq7#mP2!. Done right — with truly random word selection — it delivers comparable security to a random character password while being dramatically easier to remember, type, and say out loud. The words are not a sentence you invented (that would be predictable); they are an arbitrary draw from a wordlist, which is what gives them their strength.
Diceware: Where Word-Based Passwords Come From
The technique dates to 1995, when Arnold Reinhold published Diceware: roll five six-sided dice to pick a word from a 7,776-word list (6⁵ = 7,776), repeat per word. Each roll adds log2(7776) ≈ 12.9 bits of entropy. The famous xkcd “correct horse battery staple” cartoon pushed the idea mainstream. This generator is the digital equivalent — instead of dice it uses crypto.getRandomValues on an embedded ~200-word list of common 4–7 letter English words, chosen to be unambiguous (no profanity, no confusing homophones) so any drawn word is safe to read aloud or type.
How Much Entropy Does a Passphrase Have?
Word entropy is words × log2(list size). With a ~200-word list, each word contributes ≈ 7.6 bits, so:
- 3 words ≈ 23 bits — Weak. Fine for a throwaway, not for anything real.
- 5 words ≈ 38 bits — Fair as-is; +13 bits with the appended number ≈ 51.
- 6 words ≈ 46 bits; 6 words + number ≈ 59 — “Good” and comfortably uncrackable offline for realistic targets.
- 8 words ≈ 61 bits; with number and symbol ≈ 79 — “Strong”.
The live meter computes this for your exact settings — word list size, number, and symbol — so you can watch entropy climb with every word you add.
How Many Words Do You Need?
Match the passphrase to the threat. For an attacker working offline (stolen password database, hashed, guesses at billions per second), aim for 6+ words, or 5 words with the appended number — roughly 50+ bits. For online attacks (rate-limited login forms), even 4 words is effectively uncrackable because the site throttles guesses. For a password-manager master password — the single most valuable secret you own — go long: 7–8 words. Longer costs only typing effort, and you will type it more than anything else you own.
Separators, Numbers, and Symbols
- Separator choice is cosmetic for security — dash, underscore, dot, or space all encode the same words. Spaces are the easiest to type and remember but get eaten by some login forms that trim whitespace; dashes are the safest default.
- “None” saves characters for length-limited fields: canyonvelvetdrift is 17 chars where the dashed form is 23.
- The appended number adds ~13 bits (log2 of 10,000) — cheap entropy that also satisfies “must contain a digit” policies.
- The appended symbol adds ~5 bits and satisfies “must contain a special character” rules. It is the weakest of the three entropy sources — if a site demands symbols, this covers the checkbox without inventing a pattern yourself.
Passphrases vs Random Passwords: When to Use Which
Use a passphrase for anything a human types from memory: your laptop login, password-manager master key, phone unlock, Wi-Fi, shared family accounts. Use a random character password (16+ chars, ~100 bits) for everything a password manager auto-fills — there, memory is irrelevant and entropy-per-character wins. The two tools are complements, not rivals: one memorable key that unlocks the vault, plus dozens of high-entropy strings stored inside it. Never hand-invent either — humans pick “maple-syrup-sunny-day” patterns; randomness does not.
Why crypto.getRandomValues Matters
The entire security model collapses if word selection is predictable. A classic Diceware FAQ point applies digitally: seed words from Math.random() or your own “random” picks and an attacker who models the generator cuts the search space enormously. crypto.getRandomValues taps the OS CSPRNG — hardware-seeded, unpredictable — and this tool layers rejection sampling on top so every word in the list is exactly equally likely, with no modulo bias. You get true Diceware-grade draws without owning dice.
Step-by-Step: Using the Passphrase Generator
- Set the word count. 5–6 for most accounts; 7–8 for a master password; 4 only for rate-limited logins.
- Choose a separator. Dash by default; space for pure memorability; none when a field caps the length.
- Add the number and/or symbol to satisfy complexity policies and pick up ~18 extra bits.
- Read the strength meter — it shows the computed entropy in bits for your exact configuration.
- Regenerate until it clicks — every draw is fresh and unbiased, so rerolling costs nothing.
- Copy it into the login form or password manager, then close the tab. Nothing was transmitted.
Ready to Generate a Passphrase?
You know where Diceware came from, how word entropy is computed, why 6 words beats 8 clever characters, and which settings satisfy which policy. Scroll back up, slide to your word count, and generate a passphrase you can actually remember — securely, offline, in one click.
