Hacked By AnonymousFox

Current Path : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/hashlib.cpython-311.pyc

�

c��f�-��>�dZdZee��Zee��ZedzZiZddhZd�Zd�Z	dd�Z
dd	�Z	d
dlZeZ
e	Ze�ej��Zn#e$r	dZe
Z
eZYnwxYw	d
dlmZnQ#e$rId
d
lmZed�ed��D����Zed�ed��D����Zdd�ZYnwxYw	d
dlmZn#e$rYnwxYwdd�d�ZeD]9Z	ee��e��e<�#e$rd
dlZej de��Y�6wxYw[[[[
[[	dS)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�pbkdf2_hmac�file_digestrr	c��t}|�|��}|�|S	|dvrddl}|jx|d<|d<n�|dvrddl}|jx|d<|d<n�|dvr#ddl}|jx|d	<|d
<|jx|d<|d<n�|d
vr#ddl	}|j
x|d<|d<|jx|d<|d<nj|dvrddl}|j
|d<|j|d<nM|dvr-ddl}|j|d<|j|d<|j|d<|j|d<n|dvrddl}|j|d<|j|d<n#t,$rYnwxYw|�|��}|�|St/d|z���)N>�SHA1r�rr>�MD5rrr>�SHA224�SHA256rrrrrr>�SHA384�SHA512rrrrrr>rr	rr	>r
rrr
r
rrr
>rrrrzunsupported hash type )�__builtin_constructor_cache�get�_sha1r�_md5r�_sha256rr�_sha512rr�_blake2rr	�_sha3r
rrr
rr�ImportError�
ValueError)	�name�cache�constructorrr r!r"r#r$s	         �./opt/alt/python311/lib64/python3.11/hashlib.py�__get_builtin_constructorr+Rs���'�E��)�)�D�/�/�K�����
��#�#�#��L�L�L�,1�J�6�E�&�M�E�&�M�M�
�^�
#�
#��K�K�K�*.�(�2�E�%�L�5��<�<�
�=�
=�
=��N�N�N�07��>�E�(�O�e�H�o�07��>�E�(�O�e�H�o�o�
�=�
=�
=��N�N�N�07��>�E�(�O�e�H�o�07��>�E�(�O�e�H�o�o�
�+�
+�
+��N�N�N�&��E�)��&��E�)���
�E�
E�
E��L�L�L� %��E�*�� %��E�*�� %��E�*�� %��E�*���
�/�
/�
/��L�L�L�!&��E�+��!&��E�+�����
�
�
���
�����)�)�D�/�/�K�����
�-��4�
5�
5�5s�C(D�
D�Dc���|tvrt|��S	ttd|z��}|d���|S#tt
f$rt|��cYSwxYw)N�openssl_F)�usedforsecurity)�__block_openssl_constructorr+�getattr�_hashlib�AttributeErrorr&)r'�fs  r*�__get_openssl_constructorr4~s����*�*�*�(��.�.�.�/�
�H�j�4�/�0�0��	
��%� � � � �����J�'�/�/�/�(��.�.�.�.�.�/���s�%A� A#�"A#�c�.�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_newr:�s%��
+�$�T�*�*�4�:�:�6�:�:�:r5c��|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+r1rr&r7s   r*�
__hash_newr<�s����*�*�*�.�(��.�.�t�>�>�v�>�>�>�5��|�D�$�1�1�&�1�1�1���5�5�5�
/�(��.�.�t�4�4�4�4�4�5���s�4�"A�ArN)r)�warnc#� K�|]	}|dzV��
dS)�\N���.0�xs  r*�	<genexpr>rD��&����5�5�Q�q�4�x�5�5�5�5�5�5r5�c#� K�|]	}|dzV��
dS)�6Nr@rAs  r*rDrD�rEr5c���tdtd���t|t��st	|���t|t
tf��stt|����}t|t
tf��stt|����}t|��}t|��}t|dd��}t|��|kr"t||�����}|d|t|��z
zz}|�|�
t����|�|�
t����||fd�}|dkrt!|���|�|j}|dkrt!|���d
}	d}
t$j}t|	��|kr�|||
�d��z��}||��}
t+|dz
��D]}||��}|
||��z}
�|
dz
}
|	|
�|j��z
}	t|	��|k��|	d	|�S)z�Password based key derivation function 2 (PKCS #5 v2.0)

        This Python implementations based on the hmac module about as fast
        as OpenSSL's PKCS5_PBKDF2_HMAC for short passwords and much faster
        for long passwords.
        z5Python implementation of pbkdf2_hmac() is deprecated.�)�category�
stacklevel�
block_size�@�c���|���}|���}|�|��|�|�����|���S�N)�copy�update�digest)�msg�inner�outer�icpy�ocpys     r*�prfzpbkdf2_hmac.<locals>.prf�sX���:�:�<�<�D��:�:�<�<�D��K�K������K�K����
�
�&�&�&��;�;�=�=� r5�Nr5�)�_warn�DeprecationWarning�
isinstance�str�	TypeError�bytes�	bytearray�
memoryviewrr0�lenrTrS�	translate�	_trans_36�	_trans_5Cr&�digest_size�int�
from_bytes�to_bytes�range)�	hash_name�password�salt�
iterations�dklenrVrW�	blocksizerZ�dkey�looprk�prev�rkey�is               r*rr�sw��	�C�'��	
�	
�	
�	
�
�)�S�)�)�	'��I�&�&�&��(�U�I�$6�7�7�	3��Z��1�1�2�2�H��$��	� 2�3�3�	+���D�)�)�*�*�D��I�����I�����E�<��4�4�	��x�=�=�9�$�$��9�h�/�/�6�6�8�8�H��g��S��]�]�)B�C�C��
���X�'�'�	�2�2�3�3�3�
���X�'�'�	�2�2�3�3�3� ��	!�	!�	!�	!���>�>��Z�(�(�(��=��%�E��1�9�9��U�#�#�#������^�
��$�i�i�%����3�t�d�m�m�A�.�.�.�/�/�D��:�d�#�#�D��:��>�*�*�
)�
)���s�4�y�y���
�
�4�(�(�(����A�I�D��D�M�M�%�"3�4�4�4�D��$�i�i�%����F�U�F�|�r5)�scrypti)�_bufsizec��t|t��rt|��}n
|��}t|d��r)|�|�����|St|d��r$t|d��r|���std|�d����t|��}t|��}	|�
|��}|dkrn|�|d|����:|S)	a�Hash the contents of a file-like object. Returns a digest object.

    *fileobj* must be a file-like object opened for reading in binary mode.
    It accepts file objects from open(), io.BytesIO(), and SocketIO objects.
    The function may bypass Python's I/O and use the file descriptor *fileno*
    directly.

    *digest* must either be a hash algorithm name as a *str*, a hash
    constructor, or a callable that returns a hash object.
    �	getbuffer�readinto�readable�'z3' is not a file-like object in binary reading mode.TrN)r_r`r�hasattrrSr|r~r&rcrdr})�fileobjrTrz�	digestobj�buf�view�sizes       r*rrs+���&�#������K�K�	�	��F�H�H�	��w��$�$������*�*�,�,�-�-�-���	���$�$�
��G�Z�(�(�
�
�����
�
�N��N�N�N�
�
�	
��H�
�
�C��c�?�?�D�&�����$�$���1�9�9������e�t�e��%�%�%�	&��r5zcode for hash %s was not found.)r5rQ)!�__doc__�__always_supported�setrr�__all__rr/r+r4r:r<r1r�
__get_hash�union�openssl_md_meth_namesr%r�warningsr=r]rbrmrhrgryr�__func_name�globalsr&�logging�	exceptionr@r5r*�<module>r�s���
1��j0����.�/�/���s�-�.�.��
� V�V��!���y���)6�)6�)6�X/�/�/�$;�;�;�;�5�5�5�5�"	+��O�O�O�
�C�*�J�/�5�5��*�,�,�����+�+�+��H�
�C�*�J�J�J�+����
D�$�$�$�$�$�$�$���A�A�A�&�&�&�&�&�&���5�5�%�%��*�*�5�5�5�5�5�I���5�5�%�%��*�*�5�5�5�5�5�I�<�<�<�<�<�<�A����F	����������	�	�	��D�	����16�+�+�+�+�+�\&�J�J�K�J�!+��K�!8�!8���	�	�+�����J�J�J��������;�[�I�I�I�I�I�J������Z��j�3�3�3sH�"A�A&�%A&�*A1�1AB?�>B?�C
�
C�C� C7�7D�D

Hacked By AnonymousFox1.0, Coded By AnonymousFox