/Hands-On-Cryptography-with-Python

Code repository for Hands-On Cryptography with Python by Packt

Primary LanguagePythonMIT LicenseMIT

Hands-On Cryptography with Python

Hands-On Cryptography with Python

This is the code repository for Hands-On Cryptography with Python, published by Packt.

Leverage the power of Python to encrypt and decrypt data

What is this book about?

Cryptography is essential for protecting sensitive information, but it is often performed inadequately or incorrectly.

This book covers the following exciting features:

  • 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

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter01.

The code will look like the following:

 alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 str_in = raw_input("Enter message, like HELLO: ")

 n = len(str_in)
 str_out = ""

 for i in range(n):
    c = str_in[i]
    loc = alpha.find(c)
    print i, c, loc, 
    newloc = loc + 3
    str_out += alpha[newloc]
    print newloc, str_out

 print "Obfuscated version:", str_out

Following is what you need for this book: Hands-On Cryptography with Python is for security professionals who want to learn to encrypt and evaluate data, and compare different encryption methods.

With the following software and hardware list you can run all code files present in the book (Chapter 1-3).

Software and Hardware List

Chapter Software required OS required
1-3 Python (latest version) macOS or Ubuntu/Linux

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Sam Bowne has been teaching computer networking and security classes at City College of San Francisco since 2000. He has given talks and hands-on training at DEFCON, HOPE, B-Sides SF, B-Sides LV, BayThreat, LayerOne, Toorcon, and many other schools and conferences. He has done his PhD and CISSP. He is a DEF CON Black-Badge co-winner.

Suggestions and Feedback

Click here if you have any feedback or suggestions.