Search⌘ K

Introduction to Encryption and Cryptography

Explore how Python handles encryption and cryptography by learning to create hashes and perform encryption tasks using standard libraries and third-party tools like PyCrypto. Understand the use of hashing algorithms for password storage and data integrity verification.

We'll cover the following...

Python doesn’t have very much in its standard library that deals with encryption. Instead, we get hashing libraries. We’ll take a brief look at those in the chapter, but the primary focus will be on the following 3rd party packages: PyCrypto and cryptography. We will learn how to encrypt and decrypt strings with both of these libraries.

Hashing

If we need secure hashes or message digest algorithms, then Python’s ...