如何在python hashlib中获取其他/不安全的哈希

如何在python hashlib中获取其他/不安全的哈希,python,hashlib,md2,Python,Hashlib,Md2,使用hashlib hashlib.u可用 {'sha256','sha512','md5-sha1','sha512','sha512','sha384','mdc2','md5','sha224','sha512','sha384','ripemd160','SHA3256','sha1','whirlpool','SHA324','SHA128','sm3','SHA3512','blake2b','blake2s} 如何获取MD2、ripemd128、ripemd256、ripemd32

使用hashlib

hashlib.u可用 {'sha256','sha512','md5-sha1','sha512','sha512','sha384','mdc2','md5','sha224','sha512','sha384','ripemd160','SHA3256','sha1','whirlpool','SHA324','SHA128','sm3','SHA3512','blake2b','blake2s}

如何获取MD2、ripemd128、ripemd256、ripemd320等

据推测,这些都是从openssl链接而来的,但我所做的一切都没有带来任何不同

我还可以通过zlib使用CRC32和ADLER32,但我也看不到CRC8和CRC16

编辑:openssl已启用MD2,但它不会显示在hashlib中:(


pycrypto
有md2、ripemd等,只有我已经成功拥有的ripemd160。但它确实有md2。包
pycrypto
有md2、ripemd等。只有我已经成功拥有的ripemd160。但它确实有md2。
openssl  help
Standard commands
asn1parse         ca                ciphers           cms               
crl               crl2pkcs7         dgst              dhparam           
dsa               dsaparam          ec                ecparam           
enc               engine            errstr            gendsa            
genpkey           genrsa            help              list              
nseq              ocsp              passwd            pkcs12            
pkcs7             pkcs8             pkey              pkeyparam         
pkeyutl           prime             rand              rehash            
req               rsa               rsautl            s_client          
s_server          s_time            sess_id           smime             
speed             spkac             srp               storeutl          
ts                verify            version           x509              

Message Digest commands (see the `dgst' command for more details)
blake2b512        blake2s256        gost              md2               
md4               md5               mdc2              rmd160            
sha1              sha224            sha256            sha3-224          
sha3-256          sha3-384          sha3-512          sha384            
sha512            sha512-224        sha512-256        shake128          
shake256          sm3               

Cipher commands (see the `enc' command for more details)
aes-128-cbc       aes-128-ecb       aes-192-cbc       aes-192-ecb       
aes-256-cbc       aes-256-ecb       aria-128-cbc      aria-128-cfb      
aria-128-cfb1     aria-128-cfb8     aria-128-ctr      aria-128-ecb      
aria-128-ofb      aria-192-cbc      aria-192-cfb      aria-192-cfb1     
aria-192-cfb8     aria-192-ctr      aria-192-ecb      aria-192-ofb      
aria-256-cbc      aria-256-cfb      aria-256-cfb1     aria-256-cfb8     
aria-256-ctr      aria-256-ecb      aria-256-ofb      base64            
bf                bf-cbc            bf-cfb            bf-ecb            
bf-ofb            camellia-128-cbc  camellia-128-ecb  camellia-192-cbc  
camellia-192-ecb  camellia-256-cbc  camellia-256-ecb  cast              
cast-cbc          cast5-cbc         cast5-cfb         cast5-ecb         
cast5-ofb         des               des-cbc           des-cfb           
des-ecb           des-ede           des-ede-cbc       des-ede-cfb       
des-ede-ofb       des-ede3          des-ede3-cbc      des-ede3-cfb      
des-ede3-ofb      des-ofb           des3              desx              
idea              idea-cbc          idea-cfb          idea-ecb          
idea-ofb          rc2               rc2-40-cbc        rc2-64-cbc        
rc2-cbc           rc2-cfb           rc2-ecb           rc2-ofb           
rc4               rc4-40            seed              seed-cbc          
seed-cfb          seed-ecb          seed-ofb          sm4-cbc           
sm4-cfb           sm4-ctr           sm4-ecb           sm4-ofb