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.
Related guides
All guides โ- Generating Passwords You Can Actually TrustTrust comes from three sources: cryptographic randomness, sufficient length, and a generator that never sees the network. All three are checkable.
- Planning Meetings Across Time Zones Without the GuessworkMost scheduling pain comes from three avoidable mistakes: trusting abbreviations, converting with the wrong date, and ignoring that the meeting lands on someone elseโs tomorrow.
- Daylight Saving and Time Conversion: The Mistakes That Break SchedulesOffsets are answers to "at what date?", not properties of a zone. Every classic DST bug โ drift, gaps, duplicates, hemisphere flips โ follows from forgetting that.
- A Markdown Workflow for Project DocumentationDocumentation dies when writing it hurts. Markdown plus a tight preview loop keeps the cost near zero.
Related questions
All questions โ- What Actually Makes a Password Strong?Unpredictability measured in bits of entropy. Length contributes far more than symbol swaps, and humans are bad at both unaided.
- Are Online Password Generators Safe to Use?Local generation with a cryptographic random source is safe by construction. The failure mode to avoid is generators that transmit passwords.
- UTC Offsets vs Time Zones: What Is the Difference?Offsets are static numbers; time zones are living histories of rules. Mixing them up is the root of most date bugs.
- SHA-256 vs SHA-512: Which Hash Should I Use?Both are excellent and neither is "broken". Pick by ecosystem defaults: 256 for broad compatibility, 512 where longer digests suit the job.
Related reading
All articles โ- Reading Regex Without FearRegex looks like line noise because it compresses a whole language into punctuation. Learn the eight moves and any pattern becomes parseable.
- Why UUID v4 Collisions Almost Never HappenPeople hear "random" and expect collisions eventually. The numbers say otherwise: the universe ends first.
- Client-Side Tools Change the Privacy MathEvery uploaded file is a promise about storage and deletion. Files processed locally require no promises at all.
- Screenshots That Stay Sharp: A Practical WorkflowBlurry screenshots are a workflow problem, not bad luck. Four habits keep captures pixel-perfect from grab to recipient.