Cryptography / Classical ciphers
Breaking Ciphers with Statistics
Letter frequencies, the index of coincidence and Kasiski’s method for finding a Vigenère key length.
Contents 3 sections
By the end you can
- Break a substitution cipher with frequency analysis
- Estimate a Vigenère key length
- Explain why statistics defeat classical ciphers
Helps to know: Substitution and Shift Ciphers
§1Fingerprints of a language
In English, E makes up about 12.7% of letters, T 9.1% and A 8.2%, while Z is under 0.1%. A substitution cipher relabels letters but keeps these proportions, so the most common ciphertext letter probably stands for E.
§2Attacking Vigenère
- Guess the key length : split the ciphertext into columns and pick the whose columns have an index of coincidence near English.
- Each column is now a plain shift cipher. Choose the shift whose letter frequencies best match English.
- Read off the keyword from the shifts.
Check yourself
- Q1The most frequent letter in a long English substitution ciphertext most likely stands for…