The methods of earlier chapters for cracking monoalphabetic ciphers don’t work on most of the polyalphabetic ciphers from the last chapter. A single bar chart of a Vigenère ciphertext is too flat to read. This chapter covers new techniques for recognizing polyalphabetic ciphers and cracking the Vigenère cipher, and it ends with the cipher machines that were built to resist them. The method has three steps:
In This Chapter¶
The index of coincidence.
A brute-force search with chi-squared scoring.
Finding the keyword length from repeated pieces of ciphertext.
Finding the keyword length by testing groups.
Finding each keyword letter from its group.
The Hagelin machines and the Enigma, which build keystreams with wheels and rotors that take millions of letters to repeat.
The autokey cipher’s keystream never repeats, so steps 2 and 3 don’t work on it. Section 7.4 shows how to crack it with a probable word instead. And the one-time pad can’t be cracked at all when it’s used correctly.