/var/opt/nydus/ops/mysql/connector/plugins/__pycache__
NameSizeModeActions
authentication_kerberos_client.cpython-312.pyc229970644editdlrm
authentication_ldap_sasl_client.cpython-312.pyc277530644editdlrm
authentication_oci_client.cpython-312.pyc102390644editdlrm
authentication_openid_connect_client.cpython-312.pyc71430644editdlrm
authentication_webauthn_client.cpython-312.pyc110030644editdlrm
caching_sha2_password.cpython-312.pyc60650644editdlrm
mysql_clear_password.cpython-312.pyc37420644editdlrm
mysql_native_password.cpython-312.pyc45940644editdlrm
sha256_password.cpython-312.pyc38860644editdlrm
__init__.cpython-312.pyc60470644editdlrm
Edit: /var/opt/nydus/ops/mysql/connector/plugins/__pycache__/mysql_native_password.cpython-312.pyc (4594B)
N j~dZddlZddlmZddlmZmZmZddlm Z ddl m Z dd l m Z erdd l mZd ZGd d e Zy) z&Native Password Authentication Plugin.N)sha1) TYPE_CHECKINGAnyOptional)InterfaceError)logger)MySQLAuthPlugin) MySQLSocketMySQLNativePasswordAuthPluginc~eZdZdZdedefdZedefdZede fdZ dede de efdZ d d dede defd Zy ) r zBClass implementing the MySQL Native Password authentication plugin auth_datareturnc|s td|jsyd} t|jjj }t|j }t||zj }t ||Dcgc] \}}||z  }}}t jdg|}|Scc}}w#t jtf$r} td| | d} ~ wwxYw)z;Prepares and returns password as native MySQL 4.1+ passwordz"Missing authentication data (seed)N20BzFailed scrambling password; ) r _passwordrencodedigestzipstructpackerror TypeError) selfrhash4hash1hash2hash3h1h3xorederrs ^/opt/nydus/tmp/pip-target-a90h98xg/lib/python/mysql/connector/plugins/mysql_native_password.py_prepare_passwordz/MySQLNativePasswordAuthPlugin._prepare_password1s !EF F~~ P..0188:EK&&(EU*+224E-0->?->"bR"W->E?KK..E @ i( P #?u!EFC O Ps*A5CB="C=CC0C++C0cy)zPlugin official name.mysql_native_passwordrs r%namez"MySQLNativePasswordAuthPlugin.nameEs'rcy)z'Signals whether or not SSL is required.Fr)r*s r% requires_sslz*MySQLNativePasswordAuthPlugin.requires_sslJsrkwargsc $|j|S)aMake the client's authorization response. Args: auth_data: Authorization data. kwargs: Custom configuration to be passed to the auth plugin when invoked. The parameters defined here will override the ones defined in the auth plugin itself. Returns: packet: Client's authorization response. )r&)rrr.s r% auth_responsez+MySQLNativePasswordAuthPlugin.auth_responseOs%%i00rsockr c |j|fi|}| tdtjd|t ||j |t |j}tjd||S)aSHandles server's `auth switch request` response. Args: sock: Pointer to the socket connection. auth_data: Plugin provided data (extracted from a packet representing an `auth switch request` response). kwargs: Custom configuration to be passed to the auth plugin when invoked. The parameters defined here will override the ones defined in the auth plugin itself. Returns: packet: Last server's response after back-and-forth communication. zGot a NULL auth responsez# request: %s size: %sz# server response packet: %s)r0rr debuglensendbytesrecv)rr1rr.responsepkts r%auth_switch_responsez2MySQLNativePasswordAuthPlugin.auth_switch_response]sr"&4%%i:6:   !;< < -xXG (DIIK  3S9 rN)__name__ __module__ __qualname____doc__r6r&propertystrr+boolr-rrr0r:r)rr%r r .sL5U('c''d 1u 1 1 1!.3?B r)r>rhashlibrtypingrrrerrorsrr r networkr AUTHENTICATION_PLUGIN_CLASSr r)rr%rHs9:- //#%=JOJr