Logo

上一个主题

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

下一个主题

hashlib --- Secure hashes and message digests

本页

  • Report a Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.7.17 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

上一个主题

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

下一个主题

hashlib --- Secure hashes and message digests

本页

  • Report a Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.7.17 Documentation »
  • The Python Standard Library »
  • |
© 版权所有 2001-2025, 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.

最后更新于 8月 10, 2025.
Created using Sphinx 2.3.1.