header image
Click to view the other books
Invent with Python cover thumbnail Making Games cover thumbnail Hacking Secret Ciphers cover thumbnail
Vote up on StumbleUpon.com

Chapters

PDF of Hacking Secret Ciphers with Python
PDF and All Source Code


Chapter 1 - Making Paper Cryptography Tools [related content]
Chapter 2 - Downloading and Installing Python [related content]
Chapter 3 - The Interactive Shell [related content]
Chapter 4 - String and Writing Programs [related content]
Chapter 5 - The Reverse Cipher [related content]
Chapter 6 - The Caesar Cipher [related content]
Chapter 7 - Hacking the Caesar Cipher with the Brute Force Technique [related content]
Chapter 8 - The Transposition Cipher, Encrypting [related content]
Chapter 9 - The Transposition Cipher, Decrypting [related content]
Chapter 10 - Programming a Program to Test Our Program [related content]
Chapter 11 - Encrypting and Decrypting Files [related content]
Chapter 12 - Detecting English Programmatically [related content]
Chapter 13 - Hacking the Transposition Cipher [related content]
Chapter 14 - Modular Arithmetic and the Multiplicative Cipher [related content]
Chapter 15 - The Affine Cipher [related content]
Chapter 16 - Hacking the Affine Cipher [related content]
Chapter 17 - The Simple Substitution Cipher [related content]
Chapter 18 - Hacking the Simple Substitution Cipher [related content]
Chapter 19 - The Vigenère Cipher [related content]
Chapter 20 - Frequency Analysis [related content]
Chapter 21 - Hacking the Vigenère Cipher [related content]
Chapter 22 - The One-Time Pad Cipher [related content]
Chapter 23 - Finding Prime Numbers [related content]
Chapter 24 - Public Key Cryptography and the RSA Cipher [related content]

Chapter 1

Read online: Chapter 1 - Making Paper Cryptography Tools

  • PDF of the Caesar Cipher Wheel
  • Interactive Virtual Cipher Wheel
  • Chapter 2

    Read online: Chapter 2 - Downloading and Installing Python

  • Download Python 3
  • Download pyperclip.py
  • Chapter 3

    Read online: Chapter 3 - The Interactive Shell

    Chapter 4

    Read online: Chapter 4 - String and Writing Programs

    Download source: hello.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: hello.py

    Chapter 5

    Read online: Chapter 5 - The Reverse Cipher

    Download source: reverseCipher.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: reverseCipher.py

    Chapter 6

    Read online: Chapter 6 - The Caesar Cipher

    Download source: caesarCipher.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: caesarCipher.py

    Download source: caesarCipher2.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: caesarCipher2.py

    Download source: password.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: password.py

    Download source: password2.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: password2.py

    Download source: elifeggs.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: elifeggs.py

    Chapter 7

    Read online: Chapter 7 - Hacking the Caesar Cipher with the Brute Force Technique

    Download source: caesarHacker.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: caesarHacker.py

    Chapter 8

    Read online: Chapter 8 - The Transposition Cipher, Encrypting

    Download source: transpositionEncrypt.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: transpositionEncrypt.py

    Chapter 9

    Read online: Chapter 9 - The Transposition Cipher, Decrypting

    Download source: transpositionDecrypt.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: transpositionDecrypt.py

    Chapter 10

    Read online: Chapter 10 - Programming a Program to Test Our Program

    Download source: transpositionTest.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: transpositionTest.py

    Chapter 11

    Read online: Chapter 11 - Encrypting and Decrypting Files

    Download source: transpositionFileCipher.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: transpositionFileCipher.py

    Chapter 12

    Read online: Chapter 12 - Detecting English Programmatically

    Download source: detectEnglish.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: detectEnglish.py

    Chapter 13

    Read online: Chapter 13 - Hacking the Transposition Cipher

    Download source: transpositionHacker.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: transpositionHacker.py

    Chapter 14

    Read online: Chapter 14 - Modular Arithmetic and the Multiplicative Cipher

    Download source: cryptomath.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: cryptomath.py

    Chapter 15

    Read online: Chapter 15 - The Affine Cipher

    Download source: affineCipher.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: affineCipher.py

    Download source: affineKeyTest.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: affineKeyTest.py

    Chapter 16

    Read online: Chapter 16 - Hacking the Affine Cipher

    Download source: affineHacker.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: affineHacker.py

    Chapter 17

    Read online: Chapter 17 - The Simple Substitution Cipher

    Download source: simpleSubCipher.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: simpleSubCipher.py

    Chapter 18

    Read online: Chapter 18 - Hacking the Simple Substitution Cipher

    Download source: makeWordPatterns.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: makeWordPatterns.py

    Download source: wordPatterns.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: wordPatterns.py

    Download source: simpleSubHacker.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: simpleSubHacker.py

    Chapter 19

    Read online: Chapter 19 - The Vigenère Cipher

    Download source: vigenereCipher.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: vigenereCipher.py

    Chapter 20

    Read online: Chapter 20 - Frequency Analysis

    Download source: freqAnalysis.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: freqAnalysis.py

    Chapter 21

    Read online: Chapter 21 - Hacking the Vigenère Cipher

    Download source: vigenereHacker.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: vigenereHacker.py

    Download source: vigenereDictionaryHacker.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: vigenereDictionaryHacker.py

    Chapter 22

    Read online: Chapter 22 - The One-Time Pad Cipher

    Chapter 23

    Read online: Chapter 23 - Finding Prime Numbers

    Download source: primeSieve.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: primeSieve.py

    Download source: rabinMiller.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: rabinMiller.py

    Chapter 24

    Read online: Chapter 24 - Public Key Cryptography and the RSA Cipher

    Download source: makeRsaKeys.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: makeRsaKeys.py

    Download source: rsaCipher.py

    Copy source to clipboard:

    Use the online diff tool to find typos in your code: rsaCipher.py