sodium_crypto_pwhash_str_needs_rehash
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwhash_str_needs_rehash — Détermine si un mot de passe doit être rehaché
Description
sodium_crypto_pwhash_str_needs_rehash(
string $password,
int $opslimit,
int $memlimit):
bool
Détermine si un mot de passe doit être rehaché, basé sur le hachage actuel opslimit et memlimit.
Valeurs de retour
Renvoie true si le memlimit/opslimit fourni ne correspond pas à ce qui est stocké dans le hachage.
Renvoie false si ils correspondent.