?????????? ????????? - ??????????????? - /home/agenciai/.local/lib/python3.9/site-packages/mysql/connector/aio/plugins/__pycache__/sha256_password.cpython-39.pyc
???????
a ��Jh� � @ sd d Z ddlmZmZmZ ddlmZ ddlmZ ddl m Z erLddlmZ d Z G d d � d e �ZdS )z&SHA256 Password Authentication Plugin.� )� TYPE_CHECKING�Any�Optional)�errors)�logger� )�MySQLAuthPlugin� )�MySQLSocket�MySQLSHA256PasswordAuthPluginc @ sl e Zd ZdZed�dd�Zeed�dd��Zee d�dd��Z eeee d �d d�Z deeed �dd�ZdS )r z�Class implementing the MySQL SHA256 authentication plugin Note that encrypting using RSA is not supported since the Python Standard Library does not provide this OpenSSL functionality. )�returnc C s | j �� d S )zyPrepare and return password as as clear text. Returns: password (bytes): Prepared password. � )Z _password�encode��self� r �`/home/agenciai/.local/lib/python3.9/site-packages/mysql/connector/aio/plugins/sha256_password.py�_prepare_password3 s z/MySQLSHA256PasswordAuthPlugin._prepare_passwordc C s dS )zPlugin official name.Zsha256_passwordr r r r r �name; s z"MySQLSHA256PasswordAuthPlugin.namec C s dS )z'Signals whether or not SSL is required.Tr r r r r �requires_ssl@ s z*MySQLSHA256PasswordAuthPlugin.requires_ssl)� auth_data�kwargsr c K s&