Python cryptography Library Overview
Set up hazmat and high-level primitives; understand the library structure.
Why Use the cryptography Library?
The Python cryptography library (by PyCA) provides both a high-level Fernet interface and low-level hazmat primitives. It wraps OpenSSL and is the community standard for production crypto in Python.
Installation and Structure
Install: pip install cryptography. Two layers: cryptography.fernet (safe, opinionated symmetric encryption) and cryptography.hazmat.primitives (AES, RSA, EC, hashes, HMAC — use with care).
All lessons in this course
- Python cryptography Library Overview
- AES-GCM Encrypt & Decrypt in Python
- RSA & ECDSA Key Pairs in Python
- Common Python Crypto Pitfalls & Secure Patterns