sodium_crypto_pwhash_str_needs_rehash
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwhash_str_needs_rehash — Determine whether or not to rehash a password
Description
function sodium_crypto_pwhash_str_needs_rehash(string
$password, int $opslimit, int $memlimit): bool
Determine whether or not to rehash a password, based on the current hash opslimit and memlimit.
Parameters
password
Password hash
opslimit
Configured opslimit; see sodium_crypto_pwhash_str()
memlimit
Configured memlimit; see sodium_crypto_pwhash_str()
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
