Key format review
A platform team wants to evaluate a 32-character Base64URL key format using a 64-character alphabet.
Inputs
- Length: 32
- Character set size: 64
Steps
- Entropy = 32 x log2(64) = 32 x 6
Result
- The estimated entropy is 192 bits.
Estimate the entropy of an API key format from its length and character set size.
Result
Calculating the sample result.
Many teams define custom API key formats, and entropy math helps check whether the design provides enough random search space.
Inputs
Outputs
The tool multiplies key length by the base-2 logarithm of the character set size to estimate total entropy bits.
Entropy bits = key length x log2(character set size)
Key format review
A platform team wants to evaluate a 32-character Base64URL key format using a 64-character alphabet.
Inputs
Steps
Result
The math is the same, but API keys are more often generated randomly, so the assumptions are usually stronger.
Yes. Any static prefix reduces the random part of the key and should be excluded from the random length calculation.
Keep going
Estimate password entropy from length and character set assumptions.
Generate a cryptographically random token in hex, Base64URL, or UUID-style formats.
Generate a random password with configurable length and character set options.