Cryptography is a necessary component in many parts of secure architecture. However, just adding cryptography to the code does not make it more secure; care must be given to such topics as secrets generation, secrets storage, and plain-text management. Properly designing secure software is a complicated matter, more so when cryptography is involved.
Designing for security is beyond our scope here: this chapter only teaches the basic tools that Python has for cryptography, and how to use them.
8.1 Fernet
The cryptography module supports the fernet cryptography standard. It is named after an Italian, not French, wine: ...