Available:\n{}'.format(
', '.join(sorted(hashlib.algorithms_available))))
Guaranteed:
blake2b, blake2s,...md5, sha1, sha224, sha256, sha384, sha3_224, sha3_256, sha3_384, sha3_512, sha512, shake_128, shake_...256
Available:
DSA, DSA-SHA, MD4, MD5, RIPEMD160, SHA, SHA1, SHA224, SHA256, SHA384, SHA512, blake2b..., blake2s, dsaEncryption, dsaWithSHA, ecdsa-with-SHA1, md4, md5, ripemd160, sha, sha1, sha224, sha256...())
这个例子使用了hexdigest()方法而不是digest(),因为要格式化输出以便清楚的打印。