sha256_crypt_b64

Function sha256_crypt_b64 

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

Same as sha256_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 Sha256Params to use WARNING: Make sure to compare this value in constant time!

§Returns

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