Secret writing
A cipher hides a message by changing its letters by a rule. Turn a cipher wheel to hide a message, then break it by counting letters, count the keys, and see how a keyword hides the counts.
Key takeaways
- A Caesar cipher slides every letter along the alphabet by the same number of places. The shift is the key.
- It has only 25 keys and also falls to letter counting: E is the most common English letter, so the tallest bar in the cipher text points to the shift.
- Letter counting was first written down by al-Kindi in the 9th century.
- Giving every letter its own partner makes about 4 × 10 to the power of 26 keys, too many to try, but counting letters still breaks it.
- A keyword (Vigenère) cipher flattens the counts by shifting by different amounts, and it held out until the 1800s.
Sources
Most of these sites could not be opened while this page was written, so the facts were checked through search results that quote them. The Caesar cipher as a shift of the alphabet, al-Kindi and letter counting in the 9th century, the Vigenère cipher as a series of shifts by the letters of a keyword, Babbage’s unpublished break around the 1840s and Kasiski’s published method in 1863, and the English letter shares (E 12.7, T 9.1, A 8.2 per cent) each appeared in at least two places. The sources differ on who first described the Vigenère cipher (Belaso in 1553, Vigenère in 1586) and on the date of Babbage’s break (1846 or 1854), so the page only says the 1800s for Babbage. The number of letter arrangements (26 factorial, about 4.03 × 10 to the power of 26) was computed. These ciphers are toys and are not safe to use.
- Wikipedia: Caesar cipherThe shift cipher and ROT13.
- Encyclopaedia mirror: Vigenère cipherThe keyword cipher and who broke it.
- Northern Kentucky University: Vigenère cryptanalysis (PDF)Kasiski’s method.
- Queen Mary University of London: classical ciphers (PDF)Shift, substitution and Vigenère ciphers.
- Naskręcki: the Vigenère cipher and Kasiski examinationFinding the length of the keyword.
- Wikipedia: letter frequencyShares of the English letters.
- Emory University: letter frequencies in EnglishThe order e, t, a, o, i, n.
- Smith College: English letter frequency patternsLetter patterns in English.
- University of Babylon: ciphers (PDF)Early cipher history.