ActiveState homepage
docs.activestate.com
ActivePython 3.7.4 Documentation
  • Get ActivePython
      Release notes Windows installation Linux Installaton macOS Installation License
  • Get Started
      What's included Windows Linux/Unix Package Reference Python 3.7.4 docs
  • Contact Us

Cryptographic Services — Python 3.7.4 documentation

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python »
  • en 3.7.4 Documentation »
  • The Python Standard Library »
  • |

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. Here’s an overview:

  • hashlib — Secure hashes and message digests
    • Hash algorithms
    • SHAKE variable length digests
    • 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 Mac OS X .plist files

Next topic

hashlib — Secure hashes and message digests

This Page

  • Report a Bug
  • Show Source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python »
  • en 3.7.4 Documentation »
  • The Python Standard Library »
  • |
© Copyright 2001-2019, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Jul 30, 2019. Found a bug?
Created using Sphinx 2.0.1.
Documentation built with Hugo using the Material theme.
ActiveState Platform   Downloads   Community   Code Recipes  
© 2020 ActiveState Software Inc. All rights reserved. Trademarks. Privacy Policy.