Cryptography & Security
Intermediate

Key Space Size

Number of possible keys for a b-bit key.

Formula

K=2bK = 2^b

Live Calculator

Members

Variables

KNumber of keys
bKey length (bits)

Example

128-bit key: K = 2^128 ≈ 3.4×10³⁸

Did You Know?

AES-128 has more possible keys than there are atoms in a million Earths — brute force is hopeless.

Share this formula