All courses › Databases, Networks and Security › Password strength

Password strength

A password is strong when there are a huge number of possible combinations. The number grows with the character set and quickly with the length. Entropy in bits is the base-2 logarithm of the number of combinations, and each extra bit doubles the time needed to try them all.

K=NLK = N^Lnumber of possible passwords
E=L⋅log⁡2NE = L\cdot\log_2 Nentropy in bits

Symbols

NNnumber of possible characters
LLlength
EEentropybit

Example

12 lowercase letters (N=26N = 26):

E=12⋅log⁡226≈56E = 12\cdot\log_2 26 \approx 56 bits.

Length beats complexity. Four random words are stronger than a short password with symbols.
Practise cyber security for free →

← Transfer time · Encryption →

Part of Databases, Networks and Security: Cyber security.