[ Web Proxy ]
URL:
Viewing: https://docs.python.org/3.6/library/../tutorial/../using/../using/../c-api/../library/crypto.html [Back]  [Original]

15. Cryptographic Services — Python 3.6.15 documentation
This document is for an old version of Python that is no longer supported. You should upgrade, and read the Python documentation for the current stable release.

Navigation

  • index
  • modules |
  • next |
  • previous |
  • []
  • Python »
  • 3.6.15 Documentation »
  • The Python Standard Library »
  • Quick search:
    |

15. Cryptographic Services

The modules described in this chapter implement various algorithms of a cryptographic nature. They are available at the discretion of the installation. On Unix systems, the crypt module may also be available. Heres an overview:

  • 15.1. hashlib Secure hashes and message digests
    • 15.1.1. Hash algorithms
    • 15.1.2. SHAKE variable length digests
    • 15.1.3. Key derivation
    • 15.1.4. BLAKE2
      • 15.1.4.1. Creating hash objects
      • 15.1.4.2. Constants
      • 15.1.4.3. Examples
        • 15.1.4.3.1. Simple hashing
        • 15.1.4.3.2. Using different digest sizes
        • 15.1.4.3.3. Keyed hashing
        • 15.1.4.3.4. Randomized hashing
        • 15.1.4.3.5. Personalization
        • 15.1.4.3.6. Tree mode
      • 15.1.4.4. Credits
  • 15.2. hmac Keyed-Hashing for Message Authentication
  • 15.3. secrets Generate secure random numbers for managing secrets
    • 15.3.1. Random numbers
    • 15.3.2. Generating tokens
      • 15.3.2.1. How many bytes should tokens use?
    • 15.3.3. Other functions
    • 15.3.4. Recipes and best practices

Previous topic

14.5. plistlib Generate and parse Mac OS X .plist files

Next topic

15.1. hashlib Secure hashes and message digests

This Page

  • Report a Bug
  • Show Source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • []
  • Python »
  • 3.6.15 Documentation »
  • The Python Standard Library »
  • Quick search:
    |
© Copyright 2001-2025, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Apr 16, 2025. Found a bug?
Created using Sphinx 2.3.1.

Web Proxy Viewer  |  New URL  |  Original Page