Python logo

上一主题

plistlib --- Generate and parse Apple .plist files

下一主题

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

当前页

  • 报告 Bug
  • 显示源码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.12.4 Documentation »
  • Python 标准库 »
  • 加密服务
  • |
  • |

加密服务¶

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

  • hashlib --- 安全哈希与消息摘要
    • 哈希算法
    • 用法
    • 构造器
    • 属性
    • 哈希对象
    • SHAKE 可变长度摘要
    • 文件哈希
    • 密钥派生
    • BLAKE2
      • 创建哈希对象
      • 常量
      • 例子
        • 简单哈希
        • 使用不同的摘要大小
        • 密钥哈希
        • 随机哈希
        • 个性化
        • 树形模式
      • 开发人员
  • hmac --- 用于消息验证的密钥哈希
  • secrets --- Generate secure random numbers for managing secrets
    • 随机数
    • 生成 Token
      • Token 应当使用多少个字节?
    • 其他功能
    • 应用技巧与最佳实践

上一主题

plistlib --- Generate and parse Apple .plist files

下一主题

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

当前页

  • 报告 Bug
  • 显示源码
«

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.12.4 Documentation »
  • Python 标准库 »
  • 加密服务
  • |
  • |
© 版权所有 2001-2024, 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.

最后更新于 Jun 18, 2024 (21:19 UTC). Found a bug?
由 Sphinx 7.3.7创建。