Password strength (entropy) calculator
Entropy of a random password and how long brute force would take. Enter your values and see the formula, your numbers plugged in and every step of the working. Free, no sign-up, SI and imperial units.
Formula
H = L · log₂(N) t = 2^H / (2 · guesses per second)
Inputs
- Password length (characters) (L)
- Character set (N)
- Attacker guesses per second (g)
Worked example: 12 random characters from all 94 symbols
- Password length (characters) L = 12
- Character set N = All printable symbols (94)
- Attacker guesses per second g = 10000000000
- H = 12 × log₂(94) = 78.6551 bits
- t = 2^78.6551 ÷ 2 ÷ 1 × 1010 = 2.38 × 1013 s ≈ 754,050 years
- Only true for randomly generated passwords. Words and patterns are far weaker.
Answer: Entropy (bits) H = 78.6551 ; Average time to crack t = 754,050 year
More software engineering calculators
- Algorithm complexity (Big-O): How long algorithms of different complexity take as the input grows.
- Amdahl's law (parallel speed-up): Maximum speed-up from running part of a program on more processors.
- Number base converter: Convert between binary, octal, decimal and hexadecimal, with the working.
- IP subnet calculator: Network, broadcast, mask and host range of an IPv4 address in CIDR form.
Software Engineering formula sheet · All calculators · Practice problems