hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
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
dd    l m Z erdd
l mZd 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             ú`H:\Change_password\venv_build\Lib\site-packages\mysql/connector/plugins/caching_sha2_password.pyÚ    _scramblez,MySQLCachingSHA2PasswordAuthPlugin._scramble7s´€ñÜ Ð!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.nameMs€ð'rcó—y)z'Signals whether or not SSL is required.Fr)r*s r%Ú requires_sslz/MySQLCachingSHA2PasswordAuthPlugin.requires_sslRs€ð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_responseWsR€ñØÜ ˆy‹>˜AÒ Ø—>‘> )Ó,Ð ,Ø Q‰<˜4×;Ñ;Ò ;à—>‘>×(Ñ(Ó*¨WÑ4Ð 4àrÚsockr c ó€—|j|fi|¤Ž}|r|j|«t|j««S)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.
        )r2ÚsendÚbytesÚrecv)rr3rr.Úresponses     r%Úauth_more_responsez5MySQLCachingSHA2PasswordAuthPlugin.auth_more_responsems;€ð"&4×%Ñ% iÑ:°6Ñ:ˆÙ Ø I‰IhÔ äT—Y‘Y“[Ó!Ð!rc ó—|j|fi|¤Ž}|€ td«‚tjd|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)r2rr    Údebugr1r5r6r7)rr3rr.r8Úpkts      r%Úauth_switch_responsez7MySQLCachingSHA2PasswordAuthPlugin.auth_switch_response„sr€ð"&4×%Ñ% iÑ:°6Ñ:ˆØ Ð Ü Ð!;Ó<Ð <ä ‰ Ð-¨x¼¸X»ÔGØ     ‰    (ÔäD—I‘I“KÓ ˆÜ ‰ Ð3°SÔ9àˆ
rN)Ú__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Úerrorsrr    Úr Únetworkr ÚAUTHENTICATION_PLUGIN_CLASSr r)rr%ú<module>rMs9ðñ:3ã åß/Ñ/å#ÝÝáÝ%àBÐôq¨õqr