Strength of 18 random characters
| Character set | Pool | Combinations | Entropy | Avg. time at 10 billion guesses/s |
|---|---|---|---|---|
| Digits only (PIN) | 10 | 1.00 × 10^18 | 60 bits | 1.6 years |
| Lowercase | 26 | 2.95 × 10^25 | 85 bits | 46,707,465 years |
| Lower + upper | 52 | 7.73 × 10^30 | 103 bits | over a trillion years |
| Letters + digits | 62 | 1.83 × 10^32 | 107 bits | over a trillion years |
| All four sets | 86 | 6.62 × 10^34 | 116 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) = 18 × log₂(86) ≈ 115.7
Each extra character multiplies the number of possibilities by the pool size. Going from 18 to 20 characters with all sets multiplies the search space by 86² = 7,396.