PHP 8.1.28 Released!

sodium_crypto_pwhash_str_needs_rehash

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_pwhash_str_needs_rehashОпределяет, следует ли повторно использовать пароль

Описание

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

Определяет, следует ли повторно использовать пароль, на основе текущего хеш-значения opslimit и memlimit.

Список параметров

password

Хеш пароля

opslimit

Настроенный opslimit; смотрите sodium_crypto_pwhash_str()

memlimit

Настроенный memlimit; смотрите sodium_crypto_pwhash_str()

Возвращаемые значения

Возвращает true, если предоставленный memlimit/opslimit не соответствует тому, что хранится в хеше. Возвращает false, если они совпадают.

add a note

User Contributed Notes

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