This document is for an old version of Python that is no longer supported. You should upgrade and read the Python 当前稳定版本的文档.

# 14. 加密服务

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` — 安全哈希与消息摘要
  - 14.1.1. 密钥派生
- 14.2. `hmac` — 基于密钥的消息验证
- 14.3. `md5` — MD5 message digest algorithm
- 14.4. `sha` — SHA-1 message digest algorithm