14PROGRAMMING THE AFFINE CIPHER

“I should be able to whisper something in your ear, even if your ear is 1000 miles away, and the government disagrees with that.”—Philip Zimmermann, creator of Pretty Good Privacy (PGP), the most widely used email encryption software in the world

Images

In Chapter 13, you learned that the affine cipher is actually the multiplicative cipher combined with the Caesar cipher (Chapter 5), and the multiplicative cipher is similar to the Caesar cipher except it uses multiplication instead of addition to encrypt messages. In this chapter, you’ll build and run programs to implement the affine cipher. Because the affine cipher uses ...

Get Cracking Codes with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.