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 vectorsalt
- The salt value to use as a byte vectorparams
- The Sha256Params to use WARNING: Make sure to compare this value in constant time!
§Returns
Ok(())
if calculation was successfulErr(errors::CryptError)
otherwise