Cryptography & Security
Intermediate

Password Entropy

Bits of security from password length and character-set size.

Formula

H=Llog2RH = L \log_2 R

Variables

HEntropy (bits)
LPassword length
RSize of character set

Example

12 chars from 95 printable: H = 12 log2(95) ≈ 78.8 bits

Did You Know?

Every extra random character adds about 6.6 bits — length beats complexity for strong passwords.

Share this formula