Cryptography & Security
Advanced
Collision Probability
Approximate chance of a collision among n items in space N.
Formula
Variables
PCollision probability
nNumber of items
NSize of space
Example
n=1000, N=10^9: P ≈ 5×10⁻⁴
Did You Know?
UUID and nonce designers use this bound to pick sizes large enough that duplicates essentially never happen.
Share this formula
More in Cryptography & Security
View allModular Exponentiation
IntermediateCore operation of RSA encryption — raise a message to a power, modulo n.
RSA Decryption
AdvancedRecovers the message using the private exponent d.
Euler's Totient
IntermediateCounts integers below n coprime to it, for n = pq — used to make RSA keys.
Shannon Entropy
AdvancedAverage information content — and the theoretical strength of a random source.
Password Entropy
IntermediateBits of security from password length and character-set size.
Key Space Size
IntermediateNumber of possible keys for a b-bit key.