File: D:/Python311/Lib/site-packages/mysqlx/__pycache__/authentication.cpython-311.pyc
�
�nc? � � � d Z ddlZddlZddlmZ d� Z G d� d� � Z G d� d e� � Z G d
� de� � Z G d� d
e� � Z dS )z.Implementation of MySQL Authentication Plugin.� N� )�hexlifyc �` � d� t | |� � D � � }t j |� d�g|�R � S )z�Encrypt/Decrypt function used for password encryption in
authentication, using a simple XOR.
Args:
hash1 (str): The first hash.
hash2 (str): The second hash.
Returns:
str: A string with the xor applied.
c � � g | ]
\ }}||z ��S � r )�.0�h1�h2s �7D:\Python311\Lib\site-packages\mysqlx/authentication.py�
<listcomp>zxor_string.<locals>.<listcomp>0 s � �7�7�7��"�b�R�"�W�7�7�7� �B)�zip�struct�pack)�hash1�hash2� hash_size�xoreds r �
xor_stringr % s? � �
8�7�S���%6�%6�7�7�7�E��;�)����/��/�/�/�/r
c �&