Skip to main content

compute_mysql_native_hash

Function compute_mysql_native_hash 

Source
pub fn compute_mysql_native_hash(password: &str) -> [u8; 20]
Expand description

Compute the mysql_native_password stored hash = SHA1(SHA1(password)). Public so user-creation paths can populate the field at the same moment they have cleartext.