How Strong Passwords Work: Length, Entropy and Passphrases

"Use a capital, a number and a symbol" is decades-old advice that misses the point. What makes a password strong is how unpredictable it is and how long. Here is the maths, in plain terms.

Entropy: the strength measure

Password strength is usually expressed in bits of entropy. Each bit doubles the number of guesses an attacker needs. A password with 40 bits of entropy has about a trillion possibilities; one with 80 bits has about a million million million million (1024).

For a password made of characters picked truly at random from a set, entropy is:

entropy (bits) = length ร— log2(size of character set)

A 12-character random password from the full set has roughly 79 bits. A 16-character one has roughly 105 bits. Both are far beyond what any attacker can brute-force against a properly protected account.

Why length beats complexity

Adding a character multiplies the search space by the size of the character set. Adding a symbol type adds only a little to that size. Compare: an 8-character password using all 94 characters has about 52 bits; a 12-character one using lowercase only has about 56 bits. The longer plain one is already stronger.

The catch in the formula is the word random. Passwords humans invent, such as "P@ssw0rd!" or "Summer2026!", follow predictable patterns that cracking software tries first. Their real strength is a tiny fraction of what the formula suggests.

How passwords actually get cracked

Passphrases

A passphrase is several random words joined together. The important word again is random. Choosing four words from a list of 7,776 (the Diceware list) gives 4 ร— log2(7776) โ‰ˆ 51.7 bits; five words โ‰ˆ 64.6 bits; six words โ‰ˆ 77.5 bits. Six random words are comparable to a 12-character random password, and much easier to type and remember.

A quote, lyric or phrase you pick yourself is not a random passphrase, and it has far less entropy than its length suggests.

What to do in practice

  1. Use a password manager and let it generate a unique random password, 16 characters or more, for every account. You only need to remember one strong master passphrase.
  2. Use a random passphrase of six or more words for the few things you must type from memory: your manager's master password, your computer login.
  3. Turn on two-factor authentication, preferably an authenticator app or a passkey, for email, banking and anything important.
  4. Never reuse passwords. If you do only one thing, do this.
  5. Ignore forced rotation unless you suspect a breach. Current guidance from NIST recommends against periodic changes and against composition rules, favouring length and breach checking.

Generating passwords safely

A generator is only as good as its randomness. Ours uses your browser's crypto.getRandomValues(), the same cryptographic source used for encryption keys, and picks characters without statistical bias. The password is created on your device and never transmitted or stored. Length, character types and an option to exclude look-alike characters such as O/0 and l/1 are all adjustable.

Frequently asked questions

How long should a password be?

At least 12 random characters for ordinary accounts and 16 or more for important ones. If a password manager stores it, there is no reason to go short.

Are symbols necessary?

They help a little per character, but adding length helps more. Some sites require them, so a generator with a toggle is useful.

Is it safe to generate a password on a website?

It is if the generation happens in your browser and nothing is sent. You can check in the developer tools' network tab that no request is made when you click generate.

Should I write passwords down?

A note kept in a safe place at home is more secure for many people than reusing weak passwords. A password manager is better still.

๐Ÿ›  Try it yourself: the Password Generator runs entirely in your browser โ€” nothing you enter or drop in is uploaded.

Keep reading

Advertisement