Python logo

上個話題

plistlib --- Generate and parse Apple .plist files

下個話題

hashlib --- Secure hashes and message digests

This page

  • 回報臭蟲
  • 顯示來源碼

導航

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.14.0rc3 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

上個話題

plistlib --- Generate and parse Apple .plist files

下個話題

hashlib --- Secure hashes and message digests

This page

  • 回報臭蟲
  • 顯示來源碼
«

導航

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.14.0rc3 Documentation »
  • The Python Standard Library »
  • Cryptographic Services
  • |
  • |
© 版權所有 2001 Python Software Foundation.
此頁面採用 Python 軟體基金會授權條款第 2 版。
文件中的範例、應用技巧與其他程式碼額外採用了 Zero Clause BSD 授權條款。
更多訊息請見歷史與授權條款。

Python 軟體基金會是一家非營利法人。 敬請捐贈。

最後更新於 10月 08, 2025 (08:22 UTC)。 發現 bug?
以 Sphinx8.2.3建立。