hashlib --- 安全哈希與消息摘要 — Python 3.8.3 文檔 https://docs.python.org/zh-cn/3.8/library/hashlib.htmlhtml
hashlib — Secure hashes and message digests — Python 3.8.3 documentation https://docs.python.org/3.8/library/hashlib.htmlpython
Source code: Lib/hashlib.pygit
This module implements a common interface to many different secure hash and message digest algorithms. Included are the FIPS secure hash algorithms SHA1, SHA224, SHA256, SHA384, and SHA512 (defined in FIPS 180-2) as well as RSA’s MD5 algorithm (defined in Internet RFC 1321). The terms 「secure hash」 and 「message digest」 are interchangeable. Older algorithms were called message digests. The modern term is secure hash.github
這個模塊針對不一樣的安全哈希和消息摘要算法實現了一個通用的接口。包括 FIPS 的 SHA1, SHA224, SHA256, SHA384, and SHA512 (定義於 FIPS 180-2) 算法,以及 RSA 的 MD5 算法( 定義於 Internet RFC 1321)。術語「安全哈希」和「消息摘要」是可互換的,較舊的算法被稱爲消息摘要,現代術語是安全哈希。算法