sodium_crypto_pwhash_str_needs_rehash
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwash_str_needs_rehash — 암호를 다시 해시할지 여부를 결정합니다.
설명
sodium_crypto_pwhash_str_needs_rehash(string $password
, int $opslimit
, int $memlimit
): bool
현재 해시 opslimit
및 memlimit
를 기반으로 암호를 다시 해시할지 여부를 결정합니다.
매개변수
password
- 비밀번호 해시
opslimit
- 구성된 opslimit; sodium_crypto_pwash_str() 참조
memlimit
- 구성된 memlimit; sodium_crypto_pwash_str() 참조
반환 값
제공된 memlimit/opslimit가 해시에 저장된 것과 일치하지 않으면 true
를 반환합니다. 일치하면 false
를 반환합니다.