Search⌘ K
AI Features

The Cryptography Package

Explore how to implement encryption and decryption using Python's cryptography package. Understand key generation, secure message handling with the Fernet module, and basic cryptographic operations to protect your data effectively.

The cryptography package aims to be “cryptography for humans” much like the requests library is “HTTP for Humans”. The idea is that you will be able to create simple cryptographic recipes that are safe and easy-to-use. If we need to, we can drop down to low-level cryptographic primitives, which require us to know what we’re doing or we might end up creating something that’s not very secure.

Getting started

...