hyb
2025-11-18 7539e6f48c75dcaeb808359cccfd1c0d0d182ce8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Ë
Wñúhãó~—dZddlZddlmZddlmZmZmZddlm    Z    ddl
m Z ddl m Z erd    d
lmZd ZGd „d e «Zy) z,Caching SHA2 Password Authentication Plugin.éN)Úsha256)Ú TYPE_CHECKINGÚAnyÚOptional)ÚInterfaceError)Úloggeré)ÚMySQLAuthPluginé)Ú MySQLSocketÚ"MySQLCachingSHA2PasswordAuthPlugincó¦—eZdZUdZdZeed<dedefd„Ze    de
fd„«Z e    de fd„«Z ded    edeefd
„Zd d ded    edefd „Zd d ded    edefd„Zy)r zÕClass implementing the MySQL caching_sha2_password authentication plugin
 
    Note that encrypting using RSA is not supported since the Python
    Standard Library does not provide this OpenSSL functionality.
    éÚperform_full_authenticationÚ    auth_dataÚreturncó¼—|s td«‚|jsyt|jj««j    «}t«}|j t|«j    ««|j |«|j    «}t ||«Dcgc]
\}}||z ‘Œ }}}tjdg|¢­Ž}|Scc}}w)z¹Return a scramble of the password using a Nonce sent by the
        server.
 
        The scramble is of the form:
        XOR(SHA2(password), SHA2(SHA2(SHA2(password)), Nonce))
        z"Missing authentication data (seed)óÚ32B)    rÚ    _passwordrÚencodeÚdigestÚupdateÚzipÚstructÚpack)    ÚselfrÚhash1Úhash2Ú hash2_digestÚh1Úh2ÚxoredÚhash3s             údH:\Change_password\venv_build\Lib\site-packages\mysql/connector/aio/plugins/caching_sha2_password.pyÚ    _scramblez,MySQLCachingSHA2PasswordAuthPlugin._scramble8s´€ñÜ Ð!EÓFÐ Fà~Š~Øät—~‘~×,Ñ,Ó.Ó/×6Ñ6Ó8ˆÜ“ˆØ  ‰ ”V˜E“]×)Ñ)Ó+Ô,Ø  ‰ YÔØ—|‘|“~ˆ Ü),¨U°LÓ)A×B™X˜b "b“ÐBˆÑBÜ— ‘ ˜EÐ* EÒ*ˆØˆ ùóCsÂ.Ccó—y)zPlugin official name.Úcaching_sha2_password©©rs r%Únamez'MySQLCachingSHA2PasswordAuthPlugin.nameNs€ð'rcó—y)z'Signals whether or not SSL is required.Fr)r*s r%Ú requires_sslz/MySQLCachingSHA2PasswordAuthPlugin.requires_sslSs€ðrÚkwargsc ó¦—|syt|«dkDr|j|«S|d|jk(r|jj    «dzSy)aˆMake 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.
        Nr    ró)Úlenr&rrr)rrr.s   r%Ú auth_responsez0MySQLCachingSHA2PasswordAuthPlugin.auth_responseXsR€ñØÜ ˆy‹>˜AÒ Ø—>‘> )Ó,Ð ,Ø Q‰<˜4×;Ñ;Ò ;à—>‘>×(Ñ(Ó*¨WÑ4Ð 4àrÚsockr c‹ó°K—|j|fi|¤Ž}|r|j|«ƒd{–—†t|j«ƒd{–—†«S7Œ%7Œ
­w)aEHandles server's `auth more data` response.
 
        Args:
            sock: Pointer to the socket connection.
            auth_data: Authentication method data (from a packet representing
                       an `auth more data` 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.
        N)r2ÚwriteÚbytesÚread)rr3rr.Úresponses     r%Úauth_more_responsez5MySQLCachingSHA2PasswordAuthPlugin.auth_more_responsensQèø€ð"&4×%Ñ% iÑ:°6Ñ:ˆÙ Ø—*‘*˜XÓ&× &Ð &ä˜4Ÿ9™9›;×&Ó'Ð'ð 'øà&ús!‚*A¬A­AÁ    AÁ
    AÁAc‹ó6K—|j|fi|¤Ž}|€ td«‚tjd|t    |««|j |«ƒd{–—†t |j«ƒd{–—†«}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)r2rrÚdebugr1r5r6r7)rr3rr.r8Úpkts      r%Úauth_switch_responsez7MySQLCachingSHA2PasswordAuthPlugin.auth_switch_response…sˆèø€ð"&4×%Ñ% iÑ:°6Ñ:ˆØ Ð Ü Ð!;Ó<Ð <ä ‰ Ð-¨x¼¸X»ÔG؏j‰j˜Ó"×"Ð"ä˜$Ÿ)™)›+×%Ó&ˆÜ ‰ Ð3°SÔ9àˆ
ð     #øà%ús$‚ABÁBÁBÁ4BÁ5!BÂBN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚintÚ__annotations__r6r&ÚpropertyÚstrr+Úboolr-rrr2r9r=r)rr%r r /sŅñð ()РÓ(ð 5ð¨Uóð,ð'cò'óð'ðð˜dòóðð uð¸ðÀÈÁóð,(Ø!ð(Ø.3ð(Ø?Bð(à    ó(ð.Ø!ðØ.3ðØ?Bðà    ôr)rArÚhashlibrÚtypingrrrÚmysql.connector.errorsrÚmysql.connector.loggerrÚr
Únetworkr ÚAUTHENTICATION_PLUGIN_CLASSr r)rr%ú<module>rNs9ðñ:3ã åß/Ñ/å1Ý)åáÝ%àBÐôq¨õqr