Jz`f$SrSr\"\5r\"\5r\S-r0rSS1rSrSr SSjr SSjr S S K r \ r \ r\R\ R 5rS S K Jr \S - rS S K Jr S S.Sjr\Hr\"\5\"5\'M CCCC C C g !\a S r \ r \rNIf=f!\a NIf=f!\a NNf=f!\a S S Kr\R2"S\5 Mif=f)a3hashlib module - A common interface to many hash functions. new(name, data=b'', **kwargs) - returns a new hash object implementing the given hash function; initializing the hash using the given binary data. Named constructor functions are also available, these are faster than using new(name): 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(). NOTE: If you want the adler32 or crc32 hash functions they are available in the zlib module. Choose your hash function wisely. Some have known collision weaknesses. sha384 and sha512 will be slow on 32 bit platforms. Hash objects have these methods: - update(data): Update the hash object with the bytes in data. Repeated calls are equivalent to a single call with the concatenation of all the arguments. - digest(): Return the digest of the bytes passed to the update() method so far as a bytes object. - hexdigest(): Like digest() except the digest is returned as a string of double length, containing only hexadecimal digits. - copy(): Return a copy (clone) of the hash object. This can be used to efficiently compute the digests of datas that share a common initial substring. For example, to obtain the digest of the byte string 'Nobody inspects the spammish repetition': >>> 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' )md5sha1sha224sha256sha384sha512blake2bblake2ssha3_224sha3_256sha3_384sha3_512 shake_128 shake_256)newalgorithms_guaranteedalgorithms_available file_digestrr c[nURU5nUbU$US;aSSKnUR=US'US'GOUS;aSSKnUR =US'US'OUS;a-SSKnUR=US 'US 'UR=US 'US 'OUS ;a-SSKnUR=US'US'UR=US'US'OUS;a#SSK nURUS'URUS'OoUS;aASSKnURUS'UR US'UR"US'UR$US'O(US;a"SSKnUR&US'UR(US'URU5nUbU$[-SU-5e![*a N0f=f)N>SHA1rrr>MD5rrr>SHA224SHA256rrrrrr>SHA384SHA512rrrrrr>rr rr >r r r r r r r r >rrrrzunsupported hash type )__builtin_constructor_cacheget_sha1r_md5r_sha2rrrr_blake2rr _sha3r r r r rr ImportError ValueError)namecache constructorrrr r!r"s /usr/lib64/python3.13/hashlib.py__get_builtin_constructorr)Rs 'E))D/K # # ,1JJ 6E&ME&M ^ # *.(( 2E%L5< = = 05 v>>5||D1&11 5 ).t44 5s5AArN) pbkdf2_hmac)scrypti)_bufsizec[U[5(a [U5nOU"5n[US5(a!UR UR 55 U$[US5(a&[US5(aUR 5(d[SU<S35e[U5n[U5nURU5nUS:XaU$UR USU5 M0)N getbufferreadintoreadable'z3' is not a file-like object in binary reading mode.r) isinstancestrrhasattrupdater@rBr$ bytearray memoryviewrA)fileobjdigestr> digestobjbufviewsizes r(rrs&#K H w $$**,- $$ GZ ( (     {M N  H C c?D $ 19   et% r9zcode for hash %s was not found.)r9)__doc____always_supportedsetrr__all__rr-r)r2r8r;r/r __get_hashunionopenssl_md_meth_namesr#r<r=r __func_nameglobalsr$logging exceptionr9r(r\sg 1 j0 ./-.  G G!y)6X/$;5" + C*J/55  * *, $ G   16+\&JKJ!+K!8 + J Z j3]+H C*J+    n J;[IJsG#B B!!B-4B9 BB!B*)B*-B65B69CC