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 »
  • Python 2.7.18 documentation »
  • The Python Standard Library »
  • 14. Cryptographic Services

14. 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:

  • 14.1. hashlib — Secure hashes and message digests
    • hashlib.algorithms
    • algorithms_guaranteed
    • algorithms_available
    • hash.digest_size
    • hash.block_size
    • hash.update()
    • hash.digest()
    • hash.hexdigest()
    • hash.copy()
    • 14.1.1. Key derivation
      • pbkdf2_hmac()
  • 14.2. hmac — Keyed-Hashing for Message Authentication
    • new()
    • HMAC.update()
    • HMAC.digest()
    • HMAC.hexdigest()
    • HMAC.copy()
    • compare_digest()
  • 14.3. md5 — MD5 message digest algorithm
    • digest_size
    • new()
    • md5()
      • md5.update()
      • md5.digest()
      • md5.hexdigest()
      • md5.copy()
  • 14.4. sha — SHA-1 message digest algorithm
    • new()
    • blocksize
    • digest_size
    • sha.update()
    • sha.digest()
    • sha.hexdigest()
    • sha.copy()

Previous topic

13.6. plistlib — Generate and parse Mac OS X .plist files

Next topic

14.1. hashlib — Secure hashes and message digests

This Page

  • Show Source

Quick search

«

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python »
  • Python 2.7.18 documentation »
  • The Python Standard Library »
  • 14. Cryptographic Services
© Copyright 1990-2024, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Mar 18, 2024. Found a bug?
Created using Sphinx 7.2.6.