Dutch PHP Conference 2025 - Call For Papers

sodium_crypto_pwhash_str_needs_rehash

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_pwhash_str_needs_rehashDé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.

Liste de paramètres

password

Le hachage de mot de passe

opslimit

La opslimit; voir sodium_crypto_pwhash_str()

memlimit

La memlimit; voir sodium_crypto_pwhash_str()

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.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top