You have now seen that the mathematical monoalphabetic substitution ciphers (Caesar, multiplicative and affine) are very insecure against modern computing power, or, as was the case historically, a room full of mathematicians. The keyword substitution cipher is also insecure, although cracking it takes more knowledge of the plaintext language, trial and error, and sometimes luck. This book focuses on using mathematics and programming to study cryptography, so cracking the general substitution cipher is not covered here.
To increase security, cryptographers looked for methods that would defeat frequency analysis. Their idea was to use more than one mapping of plaintext to ciphertext.
A single plaintext letter can now become two or more different ciphertext letters, which flattens the letter frequencies that our earlier methods depend on.
The first polyalphabetic cipher was Leon Battista Alberti’s cipher disk, described around 1467. About fifty years later, Johannes Trithemius’s book Polygraphia (written in 1508 and printed in 1518, after his death) published the tabula recta, a square table of alphabets that many later polyalphabetic ciphers are built on.
In This Chapter¶
Alberti’s disk, Trithemius’s table, and how a keystream picks the alphabet for each letter.
A keystream that steps through the alphabet.
A repeating keyword, how many keys it has, and how a known piece of plaintext reveals the keyword.
A keyword followed by the message itself, and how to crack it with a probable word.
A random key as long as the message, the only cipher in this book that can’t be broken.
Chapter 8 shows how to break the ciphers whose keystream repeats. It ends with the cipher machines that were built to resist those attacks.