Cryptography & Security
Basic
Hamming Distance
Number of positions at which two strings differ.
Formula
Variables
dHamming distance
x_ii-th symbol of x
y_ii-th symbol of y
Example
1011 vs 1001: differ in one bit → d = 1
Did You Know?
Richard Hamming devised his distance in 1950 after weekend computer crashes kept wrecking his jobs.
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.