Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

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

Chapter 8 shows how to break the ciphers whose keystream repeats. It ends with the cipher machines that were built to resist those attacks.