Function hash_password_for_hibp

Source
fn hash_password_for_hibp(password: &str) -> (String, String)
Expand description

Hash password with SHA-1 and split into prefix/suffix for k-anonymity.

Returns a tuple of (prefix: first 5 chars, suffix: remaining chars).