array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.sodium-crypto-pwhash-str-needs-rehash.php', 1 => 'sodium_crypto_pwhash_str_needs_rehash', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium 関数', ), 'prev' => array ( 0 => 'function.sodium-crypto-pwhash-scryptsalsa208sha256.php', 1 => 'sodium_crypto_pwhash_scryptsalsa208sha256', ), 'next' => array ( 0 => 'function.sodium-crypto-pwhash-str-verify.php', 1 => 'sodium_crypto_pwhash_str_verify', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/sodium/functions/sodium-crypto-pwhash-str-needs-rehash.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwhash_str_needs_rehash — パスワードを再計算する必要があるかを判定する
現在の opslimit
値と memlimit
値から、
パスワードを再計算する必要があるかを判定します。
password
パスワードハッシュ
opslimit
設定済みの opslimit。 sodium_crypto_pwhash_str() を参照ください。
memlimit
設定済みの memlimit。 sodium_crypto_pwhash_str() を参照ください。