mysql_common::scramble

Function scramble_native

Source
pub fn scramble_native(nonce: &[u8], password: &[u8]) -> Option<[u8; 20]>
Expand description

Scramble algorithm used in mysql_native_password.

SHA1(password) XOR SHA1(nonce, SHA1(SHA1(password)))