(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwhash_str_needs_rehash — Determina se uma senha deve ou não ter o hash refeito
Determina se uma senha deve ou não ter o hash refeito, com base no opslimit
e memlimit
do hash atual.
password
Hash de senha
opslimit
Opslimit configurado; veja sodium_crypto_pwhash_str()
memlimit
Memlimit configurado; veja sodium_crypto_pwhash_str()