Skip to main content

Blog ยท Developer Tools

Entropy, Explained for Normal People

Published ยท 2 min read

Forget "complexity rules". One number predicts whether a password survives attack, and it rewards length far more than exclamation marks.

Entropy sounds like physics homework, but in security it measures one intuitive thing: how unpredictable a choice is. Every password, passphrase, and key has an entropy score in bits, and that score predicts survival against attack better than any rule of thumb about symbols.

This primer builds the concept from coin flips upward, then applies it where it pays: choosing passwords whose numbers actually mean something.

Coin flips and bits

One fair coin flip carries one bit of entropy: two equally likely outcomes, and knowing the outcome halves your uncertainty. Ten flips carry ten bits: 1,024 equally likely sequences. Bits add when choices multiply out, which is the entire mathematical machinery.

Passwords follow identically: each truly random character chosen from N options contributes log2(N) bits. Lowercase letter: about 4.7 bits. Full keyboard mix: about 6.5. Twenty random lowercase letters beat eight random everything, because 94 beats 52 in arithmetic nobody feels intuitively.

Why human choices score embarrassingly low

Entropy math assumes uniform randomness; humans are anything but. Asked for a "random" letter, people pick consonant-heavy favourites; asked for passwords, they pick dictionary words with predictable decorations. Attackers model these biases and search human-space first.

The result: "P@ssw0rd!" scores maybe 10 effective bits despite its fearsome appearance, while a machine-generated "kq9tvx2mra" of ten lowercase characters scores 47. Effective entropy counts what attackers must actually try, not what keyboards display.

How attackers really operate

Nobody brute-forces every combination; crackers run dictionaries, leaked-password corpora, mangling rules, and Markov-chain generators that explore likely strings billions of times faster than blind search. Each shortcut shrinks effective entropy without changing displayed characters.

This asymmetry explains guidance: uniqueness defeats corpus attacks (your password appears in no leak), length defeats even smart search (each added character multiplies work), and true randomness defeats modelling (nothing to model). Complexity theatre helps none of these.

Targets worth memorising

Roughly: under 40 bits falls to hobbyists, 40-60 resists casual crime, 60-80 defeats well-funded effort, and each additional dozen bits buys astronomically more time. Practical translations: 16+ random characters or 5+ diceware words for daily accounts; 20+ characters for recovery-email-grade secrets.

Generating to target requires real randomness: cryptographic RNGs deliver it, human brains cannot. This is why generator tools backed by crypto.getRandomValues() are not conveniences but correctness instruments.

Entropy converts security hand-waving into arithmetic: count the real choices, not the visible characters. Length compounds; symbol-swapping barely registers; human predictability is the tax everything homemade pays.

The actionable summary fits a tweet: long, random, unique, generated by machines, remembered by managers. Entropy is just the reason that advice works.

Frequently asked questions

Does adding one symbol double password strength?
No. Adding a symbol class raises per-character entropy modestly (maybe half a bit); adding one character multiplies total possibilities by the whole alphabet size. Length wins decisively.
Is entropy the same as encryption strength?
They share vocabulary but differ: entropy measures unpredictability of secrets; encryption strength depends on both key entropy and algorithm soundness. Weak keys undermine strong algorithms regardless.
All guides โ†’
All questions โ†’
All articles โ†’