Strength of 12 random characters
| Character set | Pool | Combinations | Entropy | Avg. time at 10 billion guesses/s |
|---|---|---|---|---|
| Digits only (PIN) | 10 | 1.00 × 10^12 | 40 bits | 50 seconds |
| Lowercase | 26 | 9.54 × 10^16 | 56 bits | 55 days |
| Lower + upper | 52 | 3.91 × 10^20 | 68 bits | 619 years |
| Letters + digits | 62 | 3.23 × 10^21 | 71 bits | 5,112 years |
| All four sets | 86 | 1.64 × 10^23 | 77 bits | 259,327 years |
The guessing rate is an assumption for illustration (a fast offline attack on a weak hash); real attacks can be far slower or faster. Times apply only to truly random passwords like these.
How entropy is calculated
bits = length × log₂(pool size) = 12 × log₂(86) ≈ 77.1
Each extra character multiplies the number of possibilities by the pool size. Going from 12 to 14 characters with all sets multiplies the search space by 86² = 7,396.