4 Symmetric encryption
This chapter covers
- Ensuring confidentiality with encryption
- Introducing the cryptography package
- Choosing a symmetric encryption algorithm
- Rotating encryption keys
In this chapter, I’ll introduce you to the cryptography
package. You’ll learn how to use the encryption API of this package to ensure confidentiality. Keyed hashing and data authentication, from previous chapters, will make an appearance. Along the way, you’ll learn about key rotation. Finally, I’ll show you how to distinguish between safe and unsafe symmetric block ciphers.
4.1 What is encryption?
Encryption begins with plaintext. Plaintext is information that is readily comprehensible. The Gettysburg Address, an image of a cat, and a Python package are ...
Get Full Stack Python Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.