/var/opt/nydus/ops/mysql/connector/aio/plugins/__pycache__
NameSizeModeActions
authentication_kerberos_client.cpython-312.pyc233050644editdlrm
authentication_ldap_sasl_client.cpython-312.pyc283570644editdlrm
authentication_oci_client.cpython-312.pyc103910644editdlrm
authentication_openid_connect_client.cpython-312.pyc72810644editdlrm
authentication_webauthn_client.cpython-312.pyc113360644editdlrm
caching_sha2_password.cpython-312.pyc63210644editdlrm
mysql_clear_password.cpython-312.pyc38950644editdlrm
mysql_native_password.cpython-312.pyc47460644editdlrm
sha256_password.cpython-312.pyc40390644editdlrm
__init__.cpython-312.pyc61620644editdlrm
Edit: /var/opt/nydus/ops/mysql/connector/aio/plugins/__pycache__/sha256_password.cpython-312.pyc (4039B)
N jjdZddlmZmZmZddlmZddlmZddl m Z erddl m Z d Z Gd d e Zy ) z&SHA256 Password Authentication Plugin.) TYPE_CHECKINGAnyOptional)errors)logger)MySQLAuthPlugin) MySQLSocketMySQLSHA256PasswordAuthPluginczeZdZdZdefdZedefdZede fdZ dede de efdZ d d dede defd Zy ) r zClass 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<|jjdzS)zyPrepare and return password as as clear text. Returns: password (bytes): Prepared password. ) _passwordencodeselfs \/opt/nydus/tmp/pip-target-a90h98xg/lib/python/mysql/connector/aio/plugins/sha256_password.py_prepare_passwordz/MySQLSHA256PasswordAuthPlugin._prepare_password3s ~~$$&00cy)zPlugin official name.sha256_passwordrs rnamez"MySQLSHA256PasswordAuthPlugin.name;s!rcy)z'Signals whether or not SSL is required.Trrs r requires_sslz*MySQLSHA256PasswordAuthPlugin.requires_ssl@sr auth_datakwargsc |jr.|js"tj|jd|j S)zReturn the prepared password to send to MySQL. Raises: InterfaceError: When SSL is required by not enabled. Returns: str: The prepared password. z requires SSL)r ssl_enabledrInterfaceErrorrr)rrrs r auth_responsez+MySQLSHA256PasswordAuthPlugin.auth_responseEs@   T%5%5''499+](CD D%%''rsockr cJK|j|fi|}|tjdtjd|t ||j |d{t|jd{}tjd||S7=7"w)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. NzGot a NULL auth responsez# request: %s size: %sz# server response packet: %s) r#rr"rdebuglenwritebytesread)rr$rrresponsepkts rauth_switch_responsez2MySQLSHA256PasswordAuthPlugin.auth_switch_responseRs"&4%%i:6:  ''(BC C -xXGjj"""$))+%& 3S9 #%s$AB#!B"B#>B!?!B#!B#N)__name__ __module__ __qualname____doc__r)rpropertystrrboolrrrr#r-rrrr r ,s 151!c!!d (u ( ( (!.3?B rN)r1typingrrrmysql.connectorrmysql.connector.loggerrr networkr AUTHENTICATION_PLUGIN_CLASSr rrrr;s3:-//")%=AOAr