1. Calculating Password Entropy (Shannon Formula)
Password entropy evaluates unpredictability in bits: E = L × log2(R), where L is character length and R is the available character pool size. It only applies when every character is picked at random.
80 bits means 2^80 possible combinations. Real attack time depends mainly on how the site stores passwords: slow functions such as Argon2id or bcrypt make each guess far more expensive.
| Length & Pool | Entropy | Possible combinations |
|---|---|---|
| 8 digits (R = 10) | ≈ 26.6 bits | 10^8 = 100 million |
| 8 lowercase + digits (R = 36) | ≈ 41.4 bits | ≈ 2.8 × 10^12 |
| 12 characters from 95 | ≈ 78.8 bits | ≈ 5.4 × 10^23 |
| 16 characters from 95 | ≈ 105.1 bits | ≈ 4.4 × 10^31 |