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
  1. H = 12 × log₂(94) = 78.6551 bits
  2. t = 2^78.6551 ÷ 2 ÷ 1 × 1010 = 2.38 × 1013 s ≈ 754,050 years
  3. 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

Software Engineering formula sheet · All calculators · Practice problems