You’ll see “bits of entropy” next to every password LavenderCipher generates. It’s the most precise way to describe how strong a randomly generated password is, and it’s easy to misuse. Here’s what it means.
Entropy in one sentence
Entropy is the number of equally likely possibilities a password could have been, expressed as a power of two. A password with 40 bits of entropy is one of 240 (about 1.1 trillion) equally likely options. Each additional bit doubles the number of possibilities, and so doubles the work for an attacker searching them.
How to calculate it
For a password made of independent random choices:
Entropy (bits) = number of choices × log₂(options per choice)
Some examples:
| Method | Calculation | Entropy |
|---|---|---|
| 4-digit PIN | 4 × log₂(10) | ≈ 13.3 bits |
| 8 random lowercase letters | 8 × log₂(26) | ≈ 37.6 bits |
| 12 random characters from 89 | 12 × log₂(89) | ≈ 77.7 bits |
| 20 random characters from 89 | 20 × log₂(89) | ≈ 129.5 bits |
| 6 random words from 7,776 | 6 × log₂(7,776) | ≈ 77.5 bits |
The 89-character pool is what LavenderCipher’s random generator uses by default: 26 uppercase letters, 26 lowercase letters, 10 digits and 27 symbols. The 7,776-word list is the EFF Large Wordlist used by our passphrase generator.
How many bits do you need?
There’s no single answer, because it depends on how fast an attacker can guess. As rough guidance:
- Under 40 bits: guessable with modest effort, especially offline.
- 40–60 bits: acceptable where a service strictly limits login attempts, weak if a password database is stolen.
- 60–80 bits: strong for most accounts.
- 80+ bits: strong even against well-resourced offline attacks on poorly protected databases.
- 128 bits: beyond any foreseeable brute-force search.
To put that in perspective: if attackers could test 100 billion guesses per second, roughly what a single high-end graphics card can manage against a fast, unsalted hash, searching all 260 possibilities would take about four months, and 280 would take hundreds of thousands of years. On average an attacker finds the password halfway through, so halve those times.
The big caveat: entropy describes the method, not the password
Entropy is only meaningful when you know exactly how a password was generated and the process was truly random. That’s why we show it for generated passwords and not in the strength checker.
The classic mistake is applying the formula to a password a person made up. Password1! uses uppercase, lowercase, digits and a symbol, so the naive formula says 10 × log₂(94) ≈ 65 bits. In reality it’s among the first few thousand guesses any cracking tool makes, so its true strength is closer to 10 bits. People don’t pick characters uniformly at random; they pick words, names, dates and patterns.
For human-chosen passwords you need a pattern-aware estimator that models those habits. LavenderCipher’s strength checker uses zxcvbn-ts, which estimates how many guesses an attacker following common strategies would need. That’s a far more honest measure for passwords people invent.
Entropy and generator settings
A few practical consequences:
- Length matters most. Adding one random character from an 89-character pool adds about 6.5 bits; adding one random word adds about 12.9.
- Requiring every character type costs very little. Our generator can guarantee at least one uppercase letter, lowercase letter, digit and symbol. It does this without biasing the result, and the exact entropy (slightly lower) is still shown.
- Excluding characters costs a little. Removing look-alike characters such as
l,1andOshrinks the pool slightly; the displayed entropy updates to match. - Personal inspiration counts as zero. In our memorable generator, any word you supply adds no counted entropy, because an attacker who knows you might guess it.
Why we also show a strength rating
For generated passwords, LavenderCipher shows both the calculated entropy and a pattern-aware rating. They usually agree. When they don’t, for example when a random passphrase happens to contain very common words, the rating is a useful second opinion, and it errs on the cautious side.