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