sodium_crypto_pwhash_str_needs_rehash

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_pwhash_str_needs_rehashDetermina si una contraseña debe ser rehacheada

Descripción

sodium_crypto_pwhash_str_needs_rehash(string $password, int $opslimit, int $memlimit): bool

Determina si una contraseña debe ser rehacheada, basado en el hachage actual opslimit y memlimit.

Parámetros

password

El hachage de la contraseña

opslimit

La opslimit; ver sodium_crypto_pwhash_str()

memlimit

La memlimit; ver sodium_crypto_pwhash_str()

Valores devueltos

Devuelve true si el memlimit/opslimit proporcionado no corresponde a lo que está almacenado en el hachage. Devuelve false si corresponden.

add a note

User Contributed Notes

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