Python 2.7的标准库hashlib中包含的hash算法包括哪些。

如题所述

第1个回答  2019-06-17
hashlib你.然后TAB其中算法就出现了,最常用的是md5()
第2个回答  2019-08-06

在REPL里import hashlib后,输入help(hashlib)就能看到 :

md5(), sha1(), sha224(), sha256(), sha384(), sha512(), blake2b(), blake2s(), sha3_224, sha3_256, sha3_384, sha3_512, shake_128, and shake_256.

More algorithms may be available on your platform but the above are guaranteed to exist.  See the algorithms_guaranteed and algorithms_available attributes to find out what algorithm names can be passed to new().

相似回答