PHP8 sodium_crypto_pwhash_str_needs_rehash

2024-03-18 13:43 更新

(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

根據(jù)當(dāng)前哈希值和 確定是否重新哈希密碼。opslimitmemlimit

參數(shù) 

password

密碼哈希

opslimit

配置的 opslimit;見sodium_crypto_pwhash_str()

memlimit

配置的 memlimit;見sodium_crypto_pwhash_str()

返回值 

如果提供的 memlimit/opslimit 與哈希中存儲的內(nèi)容不匹配,則返回 true。 如果匹配,則返回 false。


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號