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

12HACKING THE TRANSPOSITION CIPHER

“Ron Rivest, one of the inventors of RSA, thinks that restricting cryptography would be foolhardy: ‘It is poor policy to clamp down indiscriminately on a technology just because some criminals might be able to use it to their advantage.’”— Simon Singh, The Code Book

Images

In this chapter, we’ll use a brute-force approach to hack the transposition cipher. Of the thousands of keys that could possibly be associated with the transposition cipher, the correct key should be the only one that results in legible English. Using the detectEnglish.py module we wrote in Chapter 11, our transposition cipher hacker program will ...

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