관리-도구
편집 파일: authentication.cpython-38.pyc
U )�eO � @ s� d Z ddlmZ ddlZddlmZ ddlmZmZ G dd� de �Z G d d � d e �ZG dd� de �ZG d d� de �Z dd� ZdS )z5Implementing support for MySQL Authentication Plugins� )�sha1N� )�errors)�PY2�isstrc @ s2 e Zd ZdZdZdZddd�Zdd� Zd d � ZdS )�BaseAuthPlugina� Base class for authentication plugins Classes inheriting from BaseAuthPlugin should implement the method prepare_password(). When instantiating, auth_data argument is required. The username, password and database are optional. The ssl_enabled argument can be used to tell the plugin whether SSL is active or not. The method auth_response() method is used to retrieve the password which was prepared by prepare_password(). F� Nc C s"