(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwhash_str_needs_rehash — Détermine si un mot de passe doit être rehaché
$password, int $opslimit, int $memlimit): bool
Détermine si un mot de passe doit être rehaché, basé sur le hachage actuel opslimit et memlimit.
passwordLe hachage de mot de passe
opslimitLa opslimit; voir sodium_crypto_pwhash_str()
memlimitLa memlimit; voir sodium_crypto_pwhash_str()