“Definitely worth the read even as an experienced Python developer. I learned more about cryptography and even a few new Python tricks.”<br />—Ray Doyle, <b>The Ethical Hacker Network</b><br /><br />“I recommend this book for anyone who wants to learn Python/programming and is interested in security or puzzles.”<br />—Jeanne Boyarsky, <b>Code Ranch</b><br /><br />“A fantastic programming and cryptography course for any high school-aged child.”<br /><b>—The Old Schoolhouse Magazine<br /></b>

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.
Les mer
Learn to program with Python by making and hacking ciphers - no experience required!
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
Les mer
In Cracking Codes with Python, you'll learn how to program in Python while making and breaking ciphers, which are used to encrypt secret messages. (No programming experience required!).

Produktdetaljer

ISBN
9781593278229
Publisert
2018
Utgiver
No Starch Press,US
Vekt
799 gr
Høyde
234 mm
Bredde
178 mm
Aldersnivå
G, 01
Språk
Product language
Engelsk
Format
Product format
Heftet
Antall sider
416

Forfatter

Biografisk notat

Al Sweigart is a professional software developer who teaches programming to kids and adults. He is the author of Automate the Boring Stuff with Python, Invent Your Own Computer Games with Python, and Scratch Programming Playground, also from No Starch Press. His programming tutorials can be found at inventwithpython.com.