导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.8.2 文档 »
  • Python 标准库 »
  • |

加密服务¶

本章中描述的模块实现了加密性质的各种算法。 它们可以在安装时自行选择。 在 Unix 系统上,crypt 模块也可以使用。 以下是为内容概要:

  • hashlib --- 安全哈希与消息摘要
    • 哈希算法
    • SHAKE variable length digests
    • Key derivation
    • BLAKE2
      • Creating hash objects
      • 常数
      • 示例
        • Simple hashing
        • Using different digest sizes
        • Keyed hashing
        • Randomized hashing
        • Personalization
        • Tree mode
      • Credits
  • hmac --- 基于密钥的消息验证
  • secrets --- Generate secure random numbers for managing secrets
    • 随机数
    • Generating tokens
      • How many bytes should tokens use?
    • 其他功能
    • Recipes and best practices

上一个主题

plistlib --- 生成与解析 Mac OS X .plist 文件

下一个主题

hashlib --- 安全哈希与消息摘要

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.8.2 文档 »
  • Python 标准库 »
  • |
© 版权所有 2001-2020, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.

最后更新于 4月 01, 2020. Found a bug?
Created using Sphinx 2.3.1.