Skip to main content

legacy_hash

Function legacy_hash 

Source
pub fn legacy_hash(password: &str) -> u16
Expand description

The legacy 16-bit password hash: each UTF-16 unit contributes its low byte (its high byte when the low one is zero), folded in from the last character with a 15-bit rotation, then the length and the constant 0xCE4B.