Skip to Main Content
Cracking Codes with Python
book

Cracking Codes with Python

by Al Sweigart
January 2018
Intermediate to advanced content levelIntermediate to advanced
416 pages
10h 40m
English
No Starch Press
Content preview from Cracking Codes with Python

15HACKING THE AFFINE CIPHER

“Cryptanalysis could not be invented until a civilization had reached a sufficiently sophisticated level of scholarship in several disciplines, including mathematics, statistics, and linguistics.”—Simon Singh, The Code Book

Images

In Chapter 14, you learned that the affine cipher is limited to only a few thousand keys, which means we can easily perform a brute-force attack against it. In this chapter, you’ll learn how to write a program that can break affine cipher–encrypted messages.

Source Code for the Affine Cipher Hacker Program

Open a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Robust Python

Robust Python

Patrick Viafore

Publisher Resources

ISBN: 9781492067498