Files
952-11/env/python/dll/Python312/Lib/__pycache__/hashlib.cpython-312.pyc
T

100 lines
7.9 KiB
Plaintext
Raw Normal View History

2024-08-19 17:05:14 +08:00
Ë
*åf‚%ãó¦—dZdZee«Zee«ZedzZiZddhZd„Zd„Z dd„Z
dd„Z d d
l Z e Z
e Zeje j «Z d d l mZed z
Z d d l mZd
dœd„ZeD]Z ee«e«e<Œ[[[[
[ [ y
#e$r d
Z e
Z
eZYŒEwxYw#e$rYŒDwxYw#e$rYŒHwxYw#e$rd d
lZej2de«YŒbwxYw)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'
)Úmd5Úsha1Úsha224Úsha256Úsha384Úsha512Úblake2bÚblake2sÚsha3_224Úsha3_256Úsha3_384Úsha3_512Ú shake_128Ú shake_256)ÚnewÚalgorithms_guaranteedÚalgorithms_availableÚ file_digestrr cóü—t}|j|«}|�|S |dvrddl}|jx|d<|d<�n|dvrddl}|j
x|d<|d<nô|dvr-ddl}|jx|d <|d
<|jx|d <|d <nÃ|d
vr-ddl}|jx|d<|d<|jx|d<|d<n’|dvr#ddl }|j|d<|j|d<nk|dvrAddl}|j|d<|j |d<|j"|d<|j$|d<n&|dvr"ddl}|j&|d<|j(|d<|j|«}|�|St-d|z«‚#t*$rYŒ.wxYw)N>ÚSHA1rérr>ÚMD5rrr>ÚSHA224ÚSHA256rrrrrr>ÚSHA384ÚSHA512rrrrrr>rr rr >r
r r r
r
r r r
>rrrrzunsupported hash type )Ú__builtin_constructor_cacheÚgetÚ_sha1rÚ_md5rÚ_sha2rrrrÚ_blake2rr Ú_sha3r
r r r
rrÚ ImportErrorÚ
ValueError)ÚnameÚcacheÚ constructorrrr r!r"s úCC:\Users\RCi\AppData\Local\Programs\Python\Python312\Lib\hashlib.pyÚ__get_builtin_constructorr)Rs¬€Ü '€EØ—)‘)˜D“/€KØÐØÐð
Ø Ð#Ñ #Û Ø,1¯J©JÐ 6ˆE�&‰M˜E &›MØ
�^Ñ
#Û Ø*.¯(©(Ð 2ˆE�%‰L˜5 š<Ø
Ð=Ñ
=Û Ø05· ± Ð <ˆE�(‰O˜e H™oØ05· ± Ð <ˆE�(‰O˜e HšoØ
Ð=Ñ
=Û Ø05· ± Ð <ˆE�(‰O˜e H™oØ05· ± Ð <ˆE�(‰O˜e HšoØ
Ð+Ñ
+Û Ø&Ÿ™ˆE�)Ñ Ø&Ÿ™ˆE�)Ò Ø
ÐEÑ
EÛ Ø %§¡ˆE�*Ñ Ø %§¡ˆE�*Ñ Ø %§¡ˆE�*Ñ Ø %§¡ˆE�*Ò Ø
Ð/Ñ
/Û Ø!&§¡ˆE�+Ñ Ø!&§¡ˆE�+Ñ ð—)‘)˜D“/€KØÐØÐä
Ð-°Ñ4Ó
5Ð5øô ò
Ù ð
ús�D/E/Å/ E;Å:E;có¦—|tvr t|«S ttd|z«}|d¬«|S#tt
f$rt|«cYSwxYw)NÚopenssl_F)Úusedforsecurity)Ú__block_openssl_constructorr)ÚgetattrÚ_hashlibÚAttributeErrorr$)r%Úfs r(Ú__get_openssl_constructorr2~s\€Ø Ô*Ñ*ä(¨Ó.Ð.ð /ô
”H˜j¨4Ñ/Ó 0ˆñ
˜%Õ àˆøÜ œJÐ 'ò/Ü(¨Ó.Ò.ð/ús•3³AÁAc ó&—t|«|fi|¤ŽS)z©new(name, data=b'', **kwargs) - Return a new hashing object using the
named algorithm; optionally initialized with data (which must be
a bytes-like object).
)r)©r%ÚdataÚkwargss r(Ú__py_newr7�s€ð
+Ô $ TÓ *¨4Ñ :°6Ñ :Ð:óc ó¦—|tvrt|«|fi|¤ŽS tj||fi|¤ŽS#t$rt|«|«cYSwxYw)z›new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
)r-r)r/rr$r4s r(Ú
__hash_newr:˜sd€ð Ô*Ñ*à.Ô(¨Ó.¨tÑ>°vÑ>Ð>ð5Ü�|‰|˜D $Ñ1¨&Ñ1Ð1øÜ ò5ð
/Ô(¨Ó.¨tÓ4Ò4ð 5úsœ3³AÁArN)Ú pbkdf2_hmac)Úscrypti)Ú_bufsizecóš—t|t«r t|«}n|«}t|d«r!|j |j ««|St|d«rt|d«r|j