Hacking Secret Ciphers with Python

Submitted by Erik Wegner on
Aufmacherbild

From the blog post:

This book is aimed at people who have no experience programming or with cryptography. The book goes through writing Python programs that not only implement several ciphers but also can hack these ciphers.

It is free to download under a Creative Commons license, and available for purchase as a physical book. 100% of the proceeds from the book sales will be donated to the Electronic Frontier Foundation, Creative Commons, and The Tor Project.

Each chapter presents a new program and explains how the source code works. At the same time, various ciphers and cryptography concepts are explored. This book covers:

  • The Caesar cipher (and how to hack it)
  • The Transposition cipher (and how to hack it)
  • Writing programs to automatically test our programs
  • Encrypting files
  • Programmatically detecting English
  • The Simple substitution cipher (and how to hack it)
  • Modular arithmetic
  • The Multiplicative cipher (and how to hack it)
  • The Affine cipher (and how to hack it)
  • The Simple substitution cipher (and how to hack it)
  • The Vigenere cipher (and how to hack it)
  • Frequency analysis
  • One-time pads
  • Generating prime numbers that are hundreds of digits long
  • Public key cryptography and the RSA cipher

Website: http://inventwithpython.com/hacking/

Associated categories

Add new comment

About text formats

Activitypub

  • Allowed HTML tags: <a href hreflang> <em> <strong> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.