Function dryoc::classic::crypto_pwhash::crypto_pwhash_str_needs_rehash
source · pub fn crypto_pwhash_str_needs_rehash(
hashed_password: &str,
opslimit: u64,
memlimit: usize
) -> Result<bool, Error>
Available on crate feature
base64
only.Expand description
Checks if the parameters for hashed_password
match those passed to the
function. Returns false
if the parameters match, and true
if the
parameters are mismatched (requiring a rehash).
Compatible with libsodium’s crypto_pwhash_str_needs_rehash
.