略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: sodium_crypto_pwhash_str_needs_rehash

2024-12-22

sodium_crypto_pwhash_str_needs_rehash

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_pwhash_str_needs_rehashDetermine whether or not to rehash a password

说明

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

Determine whether or not to rehash a password, based on the current hash opslimit and memlimit.

参数

password

Password hash

opslimit

Configured opslimit; see sodium_crypto_pwhash_str()

memlimit

Configured memlimit; see sodium_crypto_pwhash_str()

返回值

Returns true if the provided memlimit/opslimit do not match what's stored in the hash. Returns false if they match.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.sodium-crypto-pwhash-str-needs-rehash.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3