Native41Authenticator.encode

Native authentication method 'mysql_native_password' Calculate method: SHA1( password ) XOR SHA1( "20-bytes random data from server" <concat> SHA1( SHA1( password ) ) )

@param password password value @param charset charset of password @param salt 20 byte random challenge from server @return scrambled password

class Native41Authenticator
static
byte[]
encode
(
string password
,
Charset charset
,
byte[] salt
)

Meta