What Makes a Password Strong?
A password is strong when guessing it is impractical, full stop. Attackers do not try “clever” combinations one at a time — they run dictionaries of leaked passwords, then brute-force at billions of guesses per second on commodity GPU rigs. Strength is therefore a function of exactly two things: how many possible passwords exist (the search space) and how unpredictable yours is within it. Random selection from a large character pool maximizes both. Personal patterns — your birthday, a band name with vowels swapped for digits — shrink the search space to a suburb of it.
Entropy Explained: Why Length Beats Cleverness
Entropy measures the guesswork in bits: each additional bit doubles the work an attacker must do. For a random password it is length × log2(pool size). Concretely:
- 8 chars, all four sets (pool ≈ 88): ~52 bits — crackable in hours on serious hardware.
- 12 chars, all four sets: ~78 bits — years against offline attacks.
- 16 chars, all four sets: ~104 bits — “Very Strong” on this tool’s meter; beyond any realistic brute force.
- 20 chars, all four sets: ~130 bits — the search space exceeds anything humanity can cycle before the sun has issues.
Notice the pattern: adding characters beats adding symbol types. Going from 12 to 16 lowercase letters (about 19 bits more) helps more than adding symbols to a fixed 12 (~11 bits more). Length is the lever with the most leverage — pun intended.
How Long Should Your Password Be?
Match length to consequence. 16 characters with all four sets is the sensible default for personal accounts. Use 20+ for your email and financial accounts (email is the recovery path to everything else). Go 24–64 for anything that never gets typed by hand — Wi-Fi keys, API secrets, database passwords stored in a manager or config. Sites that cap you at 12–14 characters are telling you their storage practices deserve scrutiny; give those accounts extra uniqueness instead.
Passphrases vs Random Passwords
A passphrase strings together random words — correct-horse-battery-staple style. Word-based entropy is log2(wordlist size × words): five words from a 7,776-word list ≈ 64 bits, and the result is typeable on phones and TVs. A random character password packs more entropy per character (16 chars ≈ 104 bits) but is untypeable from memory. Practical split: passphrases for things you type often (laptop login, master password), generated random strings for everything a password manager fills in automatically. If you need both, generate a random password for the manager to remember and a passphrase for the one door you open daily.
Why crypto.getRandomValues Matters
Browsers ship two random number generators and the difference is the whole ballgame. Math.random() is a fast pseudo-random generator whose future output can be predicted from observed values — fine for shuffling UI animations, dangerous for secrets. crypto.getRandomValues draws from the operating system’s CSPRNG, seeded by hardware entropy. This generator uses it for every character, adds rejection sampling to eliminate modulo bias (so every character is equally likely, not just approximately), and shuffles the guaranteed-set characters with a Fisher-Yates pass so the “at least one from each set” rule never creates a predictable position.
Character Sets, Ambiguous Characters, and Site Rules
- Enable all four sets when allowed. The pool grows and complexity policies stop bouncing you.
- Exclude ambiguous characters (I, l, 1, O, 0, o) when a human will read or retype the password — support tickets, phone setups, printed Wi-Fi cards. It trims the pool slightly; add a character of length to compensate.
- Respect weird site limits. Some forms reject symbols or cap length. Maximize within the constraint: 14 lowercase+digit random chars (~83 bits) still crushes any human-made password.
- Never “improve” a generated password by hand. Editing trades measured entropy for your habits — exactly the patterns cracking dictionaries encode.
One Password per Account: The Real Rule
Strength cannot save a reused password. Credential-stuffing bots take username/password pairs from every breach and replay them across banks, email, and shopping sites — because they know people reuse. A password manager plus this generator makes uniqueness free: generate a fresh 16+ character password per account, let the manager remember them, and a breach at site #47 stays at site #47. Turn on two-factor authentication wherever it exists; the password is then one of two locks instead of the only one.
Step-by-Step: Using the Password Generator
- Set the length. 16 for everyday accounts; 20+ for email and finance.
- Choose character sets. All four by default; drop symbols only if a specific site demands it.
- Toggle ambiguous-character exclusion if the password will be read aloud or typed by hand.
- Watch the strength meter. It computes live entropy — aim for “Very Strong” (80+ bits) on anything that matters.
- Regenerate freely. Every click is a fresh, unbiased draw; nothing is cached or reused.
- Copy, paste into your password manager, and save before closing — generated passwords exist only on your screen.
Ready to Generate a Strong Password?
You know why 16+ random characters wins, what the bits on the strength meter mean, when a passphrase beats a random string, and why every account needs its own. Scroll back up, set your length, and generate a password that leaves brute force in the dust — computed entirely on your device.
