Description

Book Synopsis
Cracking Secret Codes with Python is a hands-on introduction to Python that teaches readers how to make and hack cipher programs, which are used to encrypt secret messages. It covers ciphers like the Caesar cipher, transposition cipher, and the RSA cipher, and teaches readers how to test and hack them. For every program, Sweigart provides the full source code and then walks readers through it, explaining how every line works. Along the way, readers will learn Python fundamentals - and by the book's end, they'll have a solid foundation in Python and some fun programs under their belt.

Table of Contents
Introduction

Chapter 1: Making Paper Cryptography Tools
Chapter 2: Installing Python
Chapter 3: The Interactive Shell
Chapter 4: Strings and Writing Programs
Chapter 5: The Reverse Cipher
Chapter 6: The Caesar Cipher
Chapter 7: Hacking the Caesar Cipher with the Brute-Force Technique
Chapter 8: Encrypting with the Transposition Cipher
Chapter 9: Decrypting with the Transposition Cipher
Chapter 10: Programming a Program to Test Our Program
Chapter 11: Encrypting and Decrypting Files
Chapter 12: Detecting English Programmatically
Chapter 13: Hacking the Transposition Cipher
Chapter 14: Making a Modular Arithmetic Module for the Multiplicative and Affine Ciphers
Chapter 15: Programming the Affine Cipher
Chapter 16: Hacking the Affine Cipher
Chapter 17: The Simple Substitution Cipher
Chapter 18: Hacking the Simple Substitution Cipher
Chapter 19: The Vigenere Cipher
Chapter 20: Frequency Analysis
Chapter 21: Hacking the Viginere Cipher
Chapter 22: The One-Time Pad Cipher
Chapter 23: Finding Prime Numbers
Chapter 24: Generating Keys for the RSA Cipher
Chapter 25: Public Key Cryptography and Programming the RSA Cipher

Appendix:
Debugger

Cracking Codes With Python: An Introduction to

    Product form

    £24.64

    Includes FREE delivery

    RRP £28.99 – you save £4.35 (15%)

    Order before 4pm tomorrow for delivery by Tue 23 Jun 2026.

    A Paperback / softback by Albert Sweigart

    2 in stock

      Trusted by thousands of customers. See 2,385+ Customer Reviews

      View other formats and editions of Cracking Codes With Python: An Introduction to by Albert Sweigart

      Publisher: No Starch Press,US
      Publication Date: 23/01/2018
      ISBN13: 9781593278229, 978-1593278229
      ISBN10: 1593278225

      Description

      Book Synopsis
      Cracking Secret Codes with Python is a hands-on introduction to Python that teaches readers how to make and hack cipher programs, which are used to encrypt secret messages. It covers ciphers like the Caesar cipher, transposition cipher, and the RSA cipher, and teaches readers how to test and hack them. For every program, Sweigart provides the full source code and then walks readers through it, explaining how every line works. Along the way, readers will learn Python fundamentals - and by the book's end, they'll have a solid foundation in Python and some fun programs under their belt.

      Table of Contents
      Introduction

      Chapter 1: Making Paper Cryptography Tools
      Chapter 2: Installing Python
      Chapter 3: The Interactive Shell
      Chapter 4: Strings and Writing Programs
      Chapter 5: The Reverse Cipher
      Chapter 6: The Caesar Cipher
      Chapter 7: Hacking the Caesar Cipher with the Brute-Force Technique
      Chapter 8: Encrypting with the Transposition Cipher
      Chapter 9: Decrypting with the Transposition Cipher
      Chapter 10: Programming a Program to Test Our Program
      Chapter 11: Encrypting and Decrypting Files
      Chapter 12: Detecting English Programmatically
      Chapter 13: Hacking the Transposition Cipher
      Chapter 14: Making a Modular Arithmetic Module for the Multiplicative and Affine Ciphers
      Chapter 15: Programming the Affine Cipher
      Chapter 16: Hacking the Affine Cipher
      Chapter 17: The Simple Substitution Cipher
      Chapter 18: Hacking the Simple Substitution Cipher
      Chapter 19: The Vigenere Cipher
      Chapter 20: Frequency Analysis
      Chapter 21: Hacking the Viginere Cipher
      Chapter 22: The One-Time Pad Cipher
      Chapter 23: Finding Prime Numbers
      Chapter 24: Generating Keys for the RSA Cipher
      Chapter 25: Public Key Cryptography and Programming the RSA Cipher

      Appendix:
      Debugger

      Recently viewed products

      © 2026 Book Curl

        • American Express
        • Apple Pay
        • Diners Club
        • Discover
        • Google Pay
        • Maestro
        • Mastercard
        • PayPal
        • Shop Pay
        • Union Pay
        • Visa

        Login

        Forgot your password?

        Don't have an account yet?
        Create account