Buy New
-55%
$17.97$17.97
FREE delivery December 10 - 16
Ships from: Yanakman Sold by: Yanakman
Used - Very Good
$6.63$6.63
FREE delivery Saturday, December 12
Ships from: ThriftBooks-Chicago Sold by: ThriftBooks-Chicago
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Cracking Codes with Python: An Introduction to Building and Breaking Ciphers
Purchase options and add-ons
After a crash course in Python programming basics, you’ll learn to make, test, and hack programs that encrypt text with classical ciphers like the transposition cipher and Vigenère cipher. You’ll begin with simple programs for the reverse and Caesar ciphers and then work your way up to public key cryptography, the type of encryption used to secure today’s online transactions, including digital signatures, email, and Bitcoin.
Each program includes the full code and a line-by-line explanation of how things work. By the end of the book, you’ll have learned how to code in Python and you’ll have the clever programs to prove it!
You’ll also learn how to:
- Combine loops, variables, and flow control statements into real working programs
- Use dictionary files to instantly detect whether decrypted messages are valid English or gibberish
- Create test programs to make sure that your code encrypts and decrypts correctly
- Code (and hack!) a working example of the affine cipher, which uses modular arithmetic to encrypt a message
- Break ciphers with techniques such as brute-force and frequency analysis
There’s no better way to learn to code than to play with real programs. Cracking Codes with Python makes the learning fun!
- ISBN-101593278225
- ISBN-13978-1593278229
- EditionIllustrated
- PublisherNo Starch Press
- Publication dateJanuary 23, 2018
- LanguageEnglish
- Dimensions7.05 x 0.94 x 9.25 inches
- Print length416 pages
Frequently bought together

Customers who viewed this item also viewed
- Codebreaking: A Practical GuidePaperbackFREE Shipping on orders over $25 shipped by AmazonGet it as soon as Wednesday, Dec 9
- Automate the Boring Stuff with Python, 3rd EditionPaperbackFREE Shipping on orders over $25 shipped by AmazonGet it as soon as Wednesday, Dec 9
- Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to ProgrammingPaperbackFREE Shipping on orders over $25 shipped by AmazonGet it as soon as Wednesday, Dec 9
- Automate the Boring Stuff with Python Workbook: Projects and Exercises to Sharpen Your Python SkillsPaperbackFREE Shipping by AmazonGet it as soon as Wednesday, Dec 9
- The Big Book of Small Python Projects: 81 Easy Practice ProgramsPaperbackGet it as soon as Saturday, Dec 12
- The Code Book: The Science of Secrecy from Ancient Egypt to Quantum CryptographyPaperbackFREE Shipping on orders over $25 shipped by AmazonGet it as soon as Wednesday, Dec 9
Customers also bought or read
- The Big Book of Small Python Projects: 81 Easy Practice Programs
Paperback$37.77$37.77FREE delivery Dec 12 - 16 - Invent Your Own Computer Games with Python, 4th Edition
Paperback$35.05$35.05FREE delivery Dec 18 - 27 - Impractical Python Projects: Playful Programming Activities to Make You Smarter
Paperback$30.55$30.55FREE delivery Wed, Dec 9 - Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More
Paperback$30.67$30.67FREE delivery Dec 12 - 16 - Black Hat Python, 2nd Edition: Python Programming for Hackers and Pentesters
Paperback$25.32$25.32FREE delivery Sat, Dec 12 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerFunctional Software Programming
Paperback$22.78$22.78Delivery Wed, Dec 9 - Learn to Code by Solving Problems: A Python Programming Primer
Paperback$21.18$21.18Delivery Wed, Dec 9 - Cryptanalysis: A Study of Ciphers and Their Solution (Dover Brain Games & Puzzles)
Paperback$15.95$15.95Delivery Wed, Dec 9 - Object-Oriented Python: Master OOP by Building Games and GUIs
Paperback$37.65$37.65FREE delivery Dec 22 - 30 - Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code
Paperback$31.67$31.67FREE delivery Dec 22 - 30 - Dive Into Algorithms: A Pythonic Adventure for the Intrepid Beginner
Paperback$31.36$31.36FREE delivery Dec 22 - 30 - Think Like a Programmer: An Introduction to Creative Problem Solving
Paperback$27.84$27.84FREE delivery Dec 14 - 18 - How Computers Really Work: A Hands-On Guide to the Inner Workings of the Machine
Paperback$31.79$31.79FREE delivery Dec 22 - 30 - Serious Cryptography, 2nd Edition: A Practical Introduction to Modern Encryption
Paperback$31.41$31.41FREE delivery Wed, Dec 9 - The Ultimate Kali Linux Book: Harness Nmap, Metasploit, Aircrack-ng, and Empire for cutting-edge pentesting
Paperback$29.82$29.82FREE delivery Wed, Dec 9 - Practical Packet Analysis, 3rd Edition: Using Wireshark to Solve Real-World Network Problems
Paperback$41.75$41.75FREE delivery Wed, Dec 9 - Practical SQL, 2nd Edition: A Beginner's Guide to Storytelling with Data#1 Best SellerComputer Programming Structured Design
Paperback$21.99$21.99Delivery Wed, Dec 9 - Math Adventures with Python: An Illustrated Guide to Exploring Math with Code
Paperback$29.99$29.99FREE delivery Sat, Dec 12 - Python for Cybersecurity: Using Python for Cyber Offense and Defense
Paperback$20.11$20.11Delivery Wed, Dec 9 - Real-World Python: A Hacker's Guide to Solving Problems with Code
Paperback$31.67$31.67FREE delivery Dec 22 - 30 - Network Basics for Hackers: How Networks Work and How They Break
Paperback$35.39$35.39FREE delivery Wed, Dec 9 - Code: The Hidden Language of Computer Hardware and Software#1 Best SellerMicrosoft Programming
Paperback$32.58$32.58FREE delivery Wed, Dec 9 - JavaScript Crash Course: A Hands-On, Project-Based Introduction to Programming
Paperback$24.96$24.96Delivery Wed, Dec 9 - The Secret Life of Programs: Understand Computers -- Craft Better Code
Paperback$35.05$35.05FREE delivery Dec 22 - 30 - Dead Simple Python: Idiomatic Python for the Impatient Programmer
Paperback$46.29$46.29FREE delivery Wed, Dec 9 - How Cybersecurity Really Works: A Hands-On Guide for Total Beginners
Paperback$23.98$23.98Delivery Wed, Dec 9 - Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners
Paperback$21.00$21.00Delivery Dec 11 - 15
Editorial Reviews
Review
—Ray Doyle, The Ethical Hacker Network
“I recommend this book for anyone who wants to learn Python/programming and is interested in security or puzzles.”
—Jeanne Boyarsky, Code Ranch
“A fantastic programming and cryptography course for any high school-aged child.”
—The Old Schoolhouse Magazine
About the Author
Product details
- Publisher : No Starch Press
- Publication date : January 23, 2018
- Edition : Illustrated
- Language : English
- Print length : 416 pages
- ISBN-10 : 1593278225
- ISBN-13 : 978-1593278229
- Item Weight : 1.75 pounds
- Reading age : 12 years and up
- Dimensions : 7.05 x 0.94 x 9.25 inches
- Best Sellers Rank: #736,896 in Books (See Top 100 in Books)
- #167 in Web Encryption
- #181 in Computer Cryptography
- #309 in Computer Hacking
- Customer Reviews:
About the author

Al Sweigart is a software developer and tech book author living in Houston. He has written several programming books for beginners, including Automate the Boring Stuff with Python. His books are freely available under a Creative Commons license at his website https://inventwithpython.com.
Customer reviews
- 0 percent of reviews have 1 stars5 star4 star3 star2 star1 star1 star83%12%4%1%0%0%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customer reviews work on AmazonCustomers say
Generated from the text of customer reviews















