The modules described in this chapter implement various algorithms of a cryptographic nature. They are available at the discretion of the installation. Here’s an overview:
hashlib — Secure hashes and message digests hmac — Keyed-Hashing for Message Authenticationsecrets — Generate secure random numbers for managing secrets
© 2001–2025 Python Software Foundation
Licensed under the PSF License.
https://docs.python.org/3.14/library/crypto.html