Python logo

Chủ đề trước

plistlib --- Generate and parse Apple .plist files

Chủ đề tiếp

hashlib --- Secure hashes and message digests

This page

  • Report a bug
  • Improve this page
  • Show source
  • Show translation source

Điều hướng

  • chỉ mục
  • các mô-đun |
  • xem tiếp |
  • xem lại |
  • Python logo
  • Python »
  • 3.15.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
      • Ví dụ
        • 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

Chủ đề trước

plistlib --- Generate and parse Apple .plist files

Chủ đề tiếp

hashlib --- Secure hashes and message digests

This page

  • Report a bug
  • Improve this page
  • Show source
  • Show translation source
«

Điều hướng

  • chỉ mục
  • các mô-đun |
  • xem tiếp |
  • xem lại |
  • Python logo
  • Python »
  • 3.15.0rc3 Documentation »
  • The Python standard library »
  • Cryptographic Services
  • |
  • |
© Bản quyền 2001 Python Software Foundation.
Trang này được cấp phép theo Giấy phép của Tổ chức Phần mềm Python Phiên bản 2.
Các ví dụ, hướng dẫn và mã nguồn khác trong tài liệu này còn được cấp phép bổ sung theo Giấy phép BSD Không Điều khoản.
Xem Lịch sử và Giấy phép để biết thêm thông tin.

Python Software Foundation là một tổ chức phi lợi nhuận. Vui lòng quyên góp.

Cập nhật lần cuối vào thg 10 04, 2026 (03:53 UTC). Tìm thấy lỗi?
Được tạo bằng Sphinx 8.2.3.