pub fn sha512_crypt_b64(
    password: &[u8],
    salt: &[u8],
    params: &Sha512Params
) -> Result<String, CryptError>
Expand description

Same as sha512_crypt except base64 representation will be returned.

Arguments

  • password - The password to process as a byte vector
  • salt - The salt value to use as a byte vector
  • params - The Sha512Params to use WARNING: Make sure to compare this value in constant time!

Returns

  • Ok(()) if calculation was successful
  • Err(errors::CryptError) otherwise