pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://docs.python.org/3/c-api/../c-api/../c-api/../using/../library/crypto.html

g:description" content="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 a..." /> Cryptographic Services — Python 3.14.7 documentation
Python logo

Previous topic

plistlib — Generate and parse Apple .plist files

Next topic

hashlib — Secure hashes and message digests

This page

  • Report a bug
  • Improve this page
  • Show source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.14.7 Documentation »
  • The Python Standard Library »
  • Cryptographic Services
  • |
  • |

Cryptographic Services¶

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
    • Hash algorithms
    • Usage
    • Constructors
    • Attributes
    • Hash Objects
    • SHAKE variable length digests
    • File hashing
    • Key derivation
    • BLAKE2
      • Creating hash objects
      • Constants
      • Examples
        • Simple hashing
        • Using different digest sizes
        • Keyed hashing
        • Randomized hashing
        • Personalization
        • Tree mode
      • Credits
  • hmac — Keyed-Hashing for Message Authentication
  • secrets — Generate secure random numbers for managing secrets
    • Random numbers
    • Generating tokens
      • How many bytes should tokens use?
    • Other functions
    • Recipes and best practices

Previous topic

plistlib — Generate and parse Apple .plist files

Next topic

hashlib — Secure hashes and message digests

This page

  • Report a bug
  • Improve this page
  • Show source
«

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.14.7 Documentation »
  • The Python Standard Library »
  • Cryptographic Services
  • |
  • |
© Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on Aug 19, 2026 (15:28 UTC). Found a bug?
Created using Sphinx 8.2.3.
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy