PHP.nl

sodium_crypto_pwhash_str_needs_rehash

sodium_crypto_pwhash_str_needs_rehash

Determine whether or not to rehash a password

bool **sodium_crypto_pwhash_str_needs_rehash** string $password int $opslimit int $memlimit

Determine whether or not to rehash a password, based on the current hash and . opslimit``memlimit

passwordPassword hash

opslimit Configured opslimit; see sodium_crypto_pwhash_str

memlimit Configured memlimit; see sodium_crypto_pwhash_str

Returns true if the provided memlimit/opslimit do not match what's stored in the hash. Returns false if they match.