Strength of 20 random characters
| Character set | Pool | Combinations | Entropy | Avg. time at 10 billion guesses/s |
|---|---|---|---|---|
| Digits only (PIN) | 10 | 1.00 × 10^20 | 66 bits | 158 years |
| Lowercase | 26 | 1.99 × 10^28 | 94 bits | 31,574,246,608 years |
| Lower + upper | 52 | 2.09 × 10^34 | 114 bits | over a trillion years |
| Letters + digits | 62 | 7.04 × 10^35 | 119 bits | over a trillion years |
| All four sets | 86 | 4.90 × 10^38 | 129 bits | over a trillion 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) = 20 × log₂(86) ≈ 128.5
Each extra character multiplies the number of possibilities by the pool size. Going from 20 to 22 characters with all sets multiplies the search space by 86² = 7,396.