Hacking Secret Ciphers with Python

(Ann) #1

250 http://inventwithpython.com/hacking


Email questions to the author: [email protected]


HACKING THE SIMPLE


SUBSTITUTION CIPHER


Topics Covered In This Chapter:
 Word patterns, candidates, potential decryption letters, and cipherletter mappings.
 The pprint.pprint() and pprint.pformat() functions
 Building strings using the list-append-join process
 Regular expressions
 The sub() regex method


“Cypherpunks deplore regulations on cryptography,
for 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
http://invpy.com/cypherpunk
Free download pdf