PHP - Manual: sodium_crypto_pwhash_str_needs_rehash
2025-10-25
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwhash_str_needs_rehash — Determine whether or not to rehash a password
Determine whether or not to rehash a password, based on the current hash opslimit and memlimit.
passwordPassword hash
opslimitConfigured opslimit; see sodium_crypto_pwhash_str()
memlimitConfigured memlimit; see sodium_crypto_pwhash_str()
官方地址:https://www.php.net/manual/en/function.sodium-crypto-pwhash-str-needs-rehash.php