Hands-On Cryptography with Python: Leverage the power of Python to encrypt and decrypt data
Learn to evaluate and compare data encryption methods and attack cryptographic systems
- Explore popular and important cryptographic methods
- Compare cryptographic modes and understand their limitations
- Learn to perform attacks on cryptographic systems
Cryptography is essential for protecting sensitive information, but it is often performed inadequately or incorrectly.
Hands-On Cryptography with Python starts by showing you how to encrypt and evaluate your data. The book will then walk you through various data encryption methods,such as obfuscation, hashing, and strong encryption, and will show how you can attack cryptographic systems. You will learn how to create hashes, crack them, and will understand why they are so different from each other. In the concluding chapters, you will use three NIST-recommended systems: the Advanced Encryption Standard (AES), the Secure Hash Algorithm (SHA), and the Rivest-Shamir-Adleman (RSA).
By the end of this book, you will be able to deal with common errors in encryption.
What you will learn
- Protect data with encryption and hashing
- Explore and compare various encryption methods
- Encrypt data using the Caesar Cipher technique
- Make hashes and crack them
- Learn how to use three NIST-recommended systems: AES, SHA, and RSA
- Understand common errors in encryption and exploit them
Who This Book Is For
Hands-On Cryptography with Python is for security professionals who want to learn to encrypt and evaluate data, and compare different encryption methods.
Table of Contents
Chapter 1. Obfuscation
Chapter 2. Hashing
Chapter 3. Strong Encryption
Title Page Copyright and Credits Hands-On Cryptography with Python Packt Upsell Why subscribe? PacktPub.com Contributor About the author Packt is searching for authors like you Preface Who this book is for What this book covers To get the most out of this book Download the example code files Download the color images Conventions used Get in touch Reviews Obfuscation About cryptography Installing and setting up Python Using Python on Mac or Linux Installing Python on Windows Caesar cipher and ROT13 Implementing the Caesar cipher in Python ROT13 base64 encoding ASCII data Binary data XOR Challenge 1 – the Caesar cipher Challenge 2 – base64 Challenge 3 – XOR Summary Hashing MD5 and SHA hashes What are hashes? Windows password hashes Getting hashes with Cain MD4 and Unicode Cracking hashes with Google Cracking hashes with wordlists Linux password hashes Challenge 1 – cracking Windows hashes Challenge 2 – cracking many-round hashes Challenge 3 – cracking Linux hashes Summary Strong Encryption Strong encryption with AES ECB and CBC modes ECB CBC Padding oracle attack Strong encryption with RSA Public key encryption RSA algorithm Implementation in Python Challenge – cracking RSA with similar factors Large integers in Python What's next? Cryptography within IoT ZigBee cryptographic keys Complexity of ZigBee key management Bluetooth – LE Summary Other Books You May Enjoy Leave a review - let other readers know what you think
How to download source code?
1. Go to:
2. In the Find a repository… box, search the book title:
Hands-On Cryptography with Python, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.