Skip to main content

derived_key

Function derived_key 

Source
pub fn derived_key(
    password: &[u8],
    salt: &[u8],
    separator: &[u8],
) -> Result<Vec<u8>, Failure>
Expand description

scrypt($password, $salt . $separator, 16384, 8, 1, 64), raw: ScryptModified’s derived key. The password is what PHP passes, already through mb_convert_encoding().

§Errors

Failure::False when scrypt’s 16 MiB cannot be allocated.