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

17HACKING THE SIMPLE SUBSTITUTION CIPHER

“Encryption is fundamentally a private act. The act of encryption, in fact, removes information from the public realm. Even laws against cryptography reach only so far as a nation’s border and the arm of its violence.”—Eric Hughes, “A Cypherpunk’s Manifesto” (1993)

Images

In Chapter 16, you learned that the simple substitution cipher is impossible to crack using brute force because it has too many possible keys. To hack the simple substitution cipher, we need to create a more sophisticated program that uses dictionary values to map the potential decryption letters of a ciphertext. In this chapter, we’ll write ...

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