ž ­ÿf1c@s(dZdZeeƒZeeƒZedZd d „Zd d „Zdddd„Z dddd„Z y.ddl Z e Z eZ eje jƒZWnek r¸e Z eZ YnXxVeD]NZye eƒeƒe>> import hashlib >>> m = hashlib.md5() >>> m.update(b"Nobody inspects") >>> m.update(b" the spammish repetition") >>> m.digest() b'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9' More condensed: >>> hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest() 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' umd5usha1usha224usha256usha384usha512unewualgorithms_guaranteedualgorithms_availablec Cs yä|dkr"ddl}|jS|dkrAddl}|jS|dkr’ddl}|d d…}|d kr||jS|d krã|jSnQ|dkrãddl}|d d…}|dkrÍ|jS|dkrã|j SnWnt k røYnXt d|ƒ‚dS(NuSHA1usha1iuMD5umd5uSHA256usha256uSHA224usha224iu256u224uSHA512usha512uSHA384usha384u512u384uunsupported hash type (uSHA1usha1(uMD5umd5(uSHA256usha256uSHA224usha224(uSHA512usha512uSHA384usha384( u_sha1usha1u_md5umd5u_sha256usha256usha224u_sha512usha512usha384u ImportErroru ValueError(unameu_sha1u_md5u_sha256ubsu_sha512((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu__get_builtin_constructorLs0              u__get_builtin_constructorc CsJy(ttd|ƒ}|ddƒ|SWnttfk rE‚YnXdS(Nuopenssl_uusedforsecurityF(ugetattru_hashlibuFalseuAttributeErroru ValueError(unameuf((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu__get_openssl_constructorhs  u__get_openssl_constructorscCst|ƒ|ƒS(unew(name, data=b'', usedforsecurity=True) - Return a new hashing object using the named algorithm; optionally initialized with data (which must be bytes). The 'usedforsecurity' keyword argument does nothing, and is for compatibilty with the OpenSSL implementation (u__get_builtin_constructor(unameudatauusedforsecurity((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu__py_newvsu__py_newc Cs3ytj|||ƒSWntk r.‚YnXdS(unew(name, data=b'', usedforsecurity=True) - Return a new hashing object using the named algorithm; optionally initialized with data (which must be bytes). Override 'usedforsecurity' to False when using for non-security purposes in a FIPS environment N(u_hashlibunewu ValueError(unameudatauusedforsecurity((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu __hash_new€s u __hash_newiNucode for hash %s was not found.(umd5usha1usha224usha256usha384usha512(unewualgorithms_guaranteedualgorithms_availableT(u__doc__u__always_supportedusetualgorithms_guaranteedualgorithms_availableu__all__u__get_builtin_constructoru__get_openssl_constructoruTrueu__py_newu __hash_newu_hashlibunewu __get_hashuunionuopenssl_md_meth_namesu ImportErroru __func_nameuglobalsu ValueErroruloggingu exception(((u,/opt/alt/python33/lib64/python3.3/hashlib.pyu?s4