(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwhash_str_needs_rehash — パスワードを再計算する必要があるかを判定する
$password, int $opslimit, int $memlimit): bool
現在の opslimit
値と memlimit 値から、
パスワードを再計算する必要があるかを判定します。
passwordパスワードハッシュ
opslimit設定済みの opslimit。 sodium_crypto_pwhash_str() を参照して下さい。
memlimit設定済みの memlimit。 sodium_crypto_pwhash_str() を参照して下さい。
設定された memlimit/opslimit が、
保存されたハッシュ値にマッチしない場合、true を返します。
マッチする場合、false を返します。