Shop top categories that ship internationally
Buy new:
-41% EUR20.21
EUR 9.42 delivery Wednesday, January 28
Ships from: Amazon.com
Sold by: Amazon.com
EUR 20.21 with 41 percent savings
List Price: EUR 34.42
No Import Fees Deposit & EUR 9.42 Shipping to Netherlands Details

Shipping & Fee Details

Price EUR 20.21
AmazonGlobal Shipping EUR 9.42
Estimated Import Fees Deposit EUR 0.00
Total EUR 29.63

EUR 9.42 delivery Wednesday, January 28
In Stock
EUR EUR 20.21 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
EUR EUR 20.21
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
EUR 8.56
FREE International Returns
Used book in good condition. May have some wear to binding, spine, cover, and pages. Some light highlighting markings writing may be present. May have some stickers and or sticker residue present. May be Ex-lib. copy. May NOT include discs, or access code or other supplemental material. Ships directly from Amazon and is eligible for Prime or super saver FREE shipping. Used book in good condition. May have some wear to binding, spine, cover, and pages. Some light highlighting markings writing may be present. May have some stickers and or sticker residue present. May be Ex-lib. copy. May NOT include discs, or access code or other supplemental material. Ships directly from Amazon and is eligible for Prime or super saver FREE shipping. See less
EUR 9.42 delivery Thursday, January 29
Only 1 left in stock - order soon.
EUR EUR 20.21 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
EUR EUR 20.21
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

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.

QR code to download the Kindle App

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Cracking Codes with Python: An Introduction to Building and Breaking Ciphers Illustrated Edition

4.7 out of 5 stars (397)

{"desktop_buybox_group_1":[{"displayPrice":"EUR 20.21","priceAmount":20.21,"currencySymbol":"EUR","integerValue":"20","decimalSeparator":".","fractionalValue":"21","symbolPosition":"left","hasSpace":true,"showFractionalPartIfEmpty":true,"offerListingId":"e3OSUcOq3jKkamdzRwPFdOUgXLjZAh%2BgjY4gs0o5U%2BTkywNqAXQgBr1eelgXNUA45dEFNjszLfw0dc7oNfsogPDCK%2BbtT27FeriOJEXsqbfMR1NT2saKRVjABBuSlpxQcPSRux%2BhRoBl7ByrqtPtMw%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"EUR 8.56","priceAmount":8.56,"currencySymbol":"EUR","integerValue":"8","decimalSeparator":".","fractionalValue":"56","symbolPosition":"left","hasSpace":true,"showFractionalPartIfEmpty":true,"offerListingId":"e3OSUcOq3jKkamdzRwPFdOUgXLjZAh%2BgWtKMgC8rD%2FIeUGAub61InrQvk1B05%2BlG0%2BAn%2BVJtayAHcwttxh7Sx1lrcnrIHiVMktJCisaPo17i%2BLwpNYdRmQqr1rfne7lOECMknT8pRrinlJ5WBtSWr6r5O0kvlucG1BEHoJybKUsm66om2FIZqVGFmuoUzLv5","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Learn how to program in Python while making and breaking ciphers—algorithms used to create and send secret messages! 

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!
Coding books for children
Get inspired with more coding books for children. Browse the selection.

Frequently bought together

This item: Cracking Codes with Python: An Introduction to Building and Breaking Ciphers
EUR20.21
In Stock
Ships from and sold by Amazon.com.
+
EUR30.98
Get it as soon as Wednesday, Jan 28
Only 10 left in stock - order soon.
Sold by Edvance Ahead and ships from Amazon Fulfillment.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

Customers also bought or read

Loading...

Editorial Reviews

Review

“Definitely worth the read even as an experienced Python developer. I learned more about cryptography and even a few new Python tricks.”
—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

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.

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 x 0.97 x 9.25 inches
  • Best Sellers Rank: #198,900 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.7 out of 5 stars (397)

About the author

Follow authors to get new release updates, plus improved recommendations.
Al Sweigart
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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

4.7 out of 5 stars
397 global ratings

Customers say

Customers find the book to be a brilliant primer on basic Python programming practices, with one customer noting how it helps powerfully process and transform text. Moreover, the content is comprehensive, with one review highlighting the historical context provided. Additionally, customers appreciate the book's entertainment value, with one mentioning it keeps beginners engaged for some time, and they like its approach to encryption.
AI Generated from the text of customer reviews

Select to learn more

9 customers mention python knowledge, 9 positive, 0 negative
Customers praise the book as a brilliant primer on basic Python programming practices, with one customer noting how it clearly explains concepts and another mentioning how it helps powerfully process and transform text.
Good book to learn python off of.Read more
Nice book with all concepts clearly explainedRead more
...I found Hacking Secret Ciphers to be a brilliant primer on basic Python programming practices, and find that it has only been refined and updated in...Read more
...In this book you learn by doing. Then he walks you through line by line and explains everything in such a way that I gained an understanding of...Read more
6 customers mention content quality, 6 positive, 0 negative
Customers find the book's content outstanding and comprehensive, with one customer noting its historical context and another mentioning its coverage of common Python modules.
...Codes with Python gets right into producing something that is comprehensive and useful. In this book you learn by doing....Read more
...Covers most of the basics, not very deeply though, but in my opinion good enough....Read more
...As a student of computer history, I really appreciated the historical context provided for why codebreaking and ciphers are so important to the...Read more
...types and decision structures through loops, data structures, common Python modules, and other advanced concepts....Read more
5 customers mention enjoyment, 5 positive, 0 negative
Customers find the book enjoyable, with one mentioning it serves as an entertaining book of exercises, while another notes it keeps beginners engaged for some time and makes learning Python more interesting.
Just excellent.. I really enjoy this book.Read more
Reading, and as a Python primer; touching on a bit of crypto history in the process.Read more
...interest in cryptography & Network Security, this book makes learning python more interesting & useful. Highly recommended.Read more
Decent content, should keep a beginner busy for some time....Read more
3 customers mention encryption, 3 positive, 0 negative
Customers appreciate the book's coverage of encryption, with one mentioning both building and breaking ciphers, while another notes its focus on decrypting old ciphers.
Very good book on ciphers and encryptionRead more
...the added bonus of interesting introduction to encrypting and decrypting old ciphers....Read more
An excellent book of Python exercises and basic cryptography primer!...Read more
Learn about computers, programming, and secret codes - all in one book!
5 out of 5 stars
Learn about computers, programming, and secret codes - all in one book!
Cracking Codes with Python is a fantastic introduction to the Python programming language -- and coding in general -- using the super-fun theme of codebreaking. What's especially fun about this approach is that you can use these secret codes to send messages to your friends -- it's way better than invisible ink. As a student of computer history, I really appreciated the historical context provided for why codebreaking and ciphers are so important to the history of computers and technology. It's also great that the book provides a companion website with answers to all the practice problems at the end of each chapter, so that you can easily check your work. I've recommended this book to folks who want to learn to code, and I'll keep doing so! By the end of it, you'll become quite the code-breaker and also a great Python programmer! I hope you enjoy it!
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

  • Reviewed in the United States on September 25, 2018
    Format: PaperbackVerified Purchase
    Full Disclosure: I solicited Mr. Sweigart for an eBook copy of this book for review purposes. This was AFTER purchasing the original Hacking Secret Ciphers book for Python 2 around 3 years ago and AFTER purchasing a physical copy of Cracking Codes immediately upon release based solely on my love for the previous installment. If it makes you feel any better, he got me the eBook months ago, and I'm dreadfully late on my review.

    I'm a huge fan of Mr. Sweigart's work. I found Hacking Secret Ciphers to be a brilliant primer on basic Python programming practices, and find that it has only been refined and updated in Cracking Codes. Many friends have expressed an interest in what I do and asked me where to begin to learn programming concepts, and I frequently point them toward Python and Mr. Sweigart's resources.

    Cracking Codes walks you through several different methods of encoding messages with different ciphers using the Python programming language. From a simple Caesar cipher all the way through an implementation of the textbook RSA cipher. He walks you through from basic data types and decision structures through loops, data structures, common Python modules, and other advanced concepts. You read from and write to files, and learn to powerfully process and transform text with Python.

    I frequently use Hacking Secret Ciphers/Cracking Codes and Automate The Boring Stuff as references for writing basic Python programs. They're outstanding resources, and it's a joy to go back through Cracking Codes, retype all the exercises, and troubleshoot them until they run. The diff tool on Mr. Sweigart's InventWithPython site is a godsend, and the ability to run the source code to see what my code should look like when it executes has helped me pass many a roadblock.

    I don't quite understand how every cipher works or why it's difficult to hack, but I do generally get what each program is doing at any given point, and you can, too. If you don't quite get cryptography, this is also a neat way to look under the hood and get some of the basic concepts. It's pretty wild to see a computer hack a cipher in seconds that would take a human hours, days, or months -- if they could solve it at all.

    An excellent and entertaining book of exercises. I wholeheartedly suggest it, especially for teens and adults interested in computer science and programming. Thank you for another great book, Mr. Sweigart!
    30 people found this helpful
    Report
  • Reviewed in the United States on May 19, 2021
    Format: PaperbackVerified Purchase
    Cracking Codes with Python is a fantastic introduction to the Python programming language -- and coding in general -- using the super-fun theme of codebreaking. What's especially fun about this approach is that you can use these secret codes to send messages to your friends -- it's way better than invisible ink. As a student of computer history, I really appreciated the historical context provided for why codebreaking and ciphers are so important to the history of computers and technology. It's also great that the book provides a companion website with answers to all the practice problems at the end of each chapter, so that you can easily check your work.

    I've recommended this book to folks who want to learn to code, and I'll keep doing so! By the end of it, you'll become quite the code-breaker and also a great Python programmer! I hope you enjoy it!
    Customer image
    5.0 out of 5 stars
    Learn about computers, programming, and secret codes - all in one book!

    Reviewed in the United States on May 19, 2021
    Cracking Codes with Python is a fantastic introduction to the Python programming language -- and coding in general -- using the super-fun theme of codebreaking. What's especially fun about this approach is that you can use these secret codes to send messages to your friends -- it's way better than invisible ink. As a student of computer history, I really appreciated the historical context provided for why codebreaking and ciphers are so important to the history of computers and technology. It's also great that the book provides a companion website with answers to all the practice problems at the end of each chapter, so that you can easily check your work.

    I've recommended this book to folks who want to learn to code, and I'll keep doing so! By the end of it, you'll become quite the code-breaker and also a great Python programmer! I hope you enjoy it!
    Images in this review
    Customer image
    One person found this helpful
    Report
  • Reviewed in the United States on March 15, 2018
    Format: PaperbackVerified Purchase
    As a Python tutorial, it is superb - comprehensive, well organized and painless. Follow along with the exercises and you'll end up with a good working knowledge of the language. Each succeeding chapter introduces more and more complex and useful language constructs, each of which is identified in the accompanying text and clearly explained. Indeed, it is the use of constructs like lists and dictionaries that make Python the very valuable and powerful scripting tool that it is.

    As a Code Cracking tutorial, it is, as declared in the book sub-title, an "Introduction". You'll see how various algorithmic strategies can be used against comparatively simple ciphers. The techniques include frequency analysis, word pattern matching and dictionary tests for decrypted text.

    But the book is more about Learning Python than it is about Cracking Codes. Upon completing it you'll emerge a journeyman Python programmer and a novice cryptographer.
    57 people found this helpful
    Report
  • Reviewed in the United States on August 3, 2022
    Format: PaperbackVerified Purchase
    Not much to dislike here guys! It's good to have some basic knowledge of python in hand. However, if you don't just take it one chapter at a time. It's worth it!
  • Reviewed in the United States on September 26, 2018
    Format: PaperbackVerified Purchase
    Prior to picking this book up I had made various attempts to learn how to program. I would go good for a while, but then I would get bored with it and move onto something else. The practice codes that other sources provide, just don't seem to hold interest due to them not really being useful. However, Cracking Codes with Python gets right into producing something that is comprehensive and useful. In this book you learn by doing. Then he walks you through line by line and explains everything in such a way that I gained an understanding of previously misunderstood concepts.
    16 people found this helpful
    Report
  • Reviewed in the United States on June 13, 2018
    Format: PaperbackVerified Purchase
    Decent content, should keep a beginner busy for some time. I picked project in there and modified it so it can decode and code stuff the way I like it and added a some what UI to it. Covers most of the basics, not very deeply though, but in my opinion good enough. Would recommend, but if ur looking into cyber security, look else where, as the encryption technique in here is really just practice for newer engineers. If your looking to start your python career somewhere and specifically cyber security, this is much better than the other books on the basics.
    10 people found this helpful
    Report
  • Reviewed in the United States on November 18, 2021
    Format: KindleVerified Purchase
    Good tutorial of basic python programming with the added bonus of interesting introduction to encrypting and decrypting old ciphers. It's probably the only tech book I ever read from cover to cover.
    3 people found this helpful
    Report
  • Reviewed in the United States on January 6, 2020
    Format: PaperbackVerified Purchase
    Great Book really breaks down the fundamentals of cracking.

Top reviews from other countries

Translate all reviews to English
  • no-panic
    5.0 out of 5 stars Great Book!
    Reviewed in Germany on September 16, 2021
    Format: KindleVerified Purchase
    A great book, but only for those who are programming Python for the first time and also have no idea about the history of cryptography. But nothing else has been promised.
    One can get into Python programming and cryptography without any prior knowledge. Each chapter introduces successively further into Python programming and at the same time into the history of cryptography.
    The theory, the code and also the examples are very well explained.
    Also, the presentation as an ebook for Kindle is also well done, which is not a given with technical books.
  • Federico
    5.0 out of 5 stars Il miglior libro da affiancare alla teoria
    Reviewed in Italy on March 17, 2022
    Format: PaperbackVerified Purchase
    Sono uno studente del corso Cryptography e cercavo un libro che si approcciasse all'aspetto pratico della crittografia utilizzando Python e ho trovato questo MAGNIFICO libro. È proprio quello che cercavo!
    Il libro è molto ben strutturato seguendo la tipica impronta americana che si focalizza più sulla pratica che sulla teoria (che ho apprezzato molto).
    La qualità del libro è notevole e la carta è buona, lo consiglio a tutti gli interessati alla materia.
    Customer image
    Federico
    5.0 out of 5 stars
    Il miglior libro da affiancare alla teoria

    Reviewed in Italy on March 17, 2022
    Sono uno studente del corso Cryptography e cercavo un libro che si approcciasse all'aspetto pratico della crittografia utilizzando Python e ho trovato questo MAGNIFICO libro. È proprio quello che cercavo!
    Il libro è molto ben strutturato seguendo la tipica impronta americana che si focalizza più sulla pratica che sulla teoria (che ho apprezzato molto).
    La qualità del libro è notevole e la carta è buona, lo consiglio a tutti gli interessati alla materia.
    Images in this review
    Customer image Customer image
    Report
  • Mehedi Hasan Shuvo
    5.0 out of 5 stars Love it.
    Reviewed in Australia on January 20, 2020
    Format: PaperbackVerified Purchase
    Always interested in cipher, cryptography, this book guiding me in the right direction for my enthusiasm.
  • Anustup kanrar
    5.0 out of 5 stars 5 stars ! Awesome page and cover quality
    Reviewed in India on April 2, 2021
    Format: PaperbackVerified Purchase
    Loved it ! 😁 Fastest delivery by Amazon! The page quality and cover is awesome
  • Gr3g0ry
    5.0 out of 5 stars Great Book
    Reviewed in Canada on February 1, 2020
    Format: PaperbackVerified Purchase
    I'm addicted to these No starch Python books.
    Cracking Codes is a great starting point for ciphers and encryprions. Well explained easy to follow.
    Worth every cent!!