sodium_crypto_shorthash
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_shorthash — 메시지와 키의 짧은 해시를 계산합니다.
설명
sodium_crypto_shorthash(string $message
, string $key
): string
sodium_crypto_shorthash()는 해시 충돌 서비스 거부 공격(Hash-DoS) 공격에 취약하지 않은 해시 테이블을 구현하는 데 이상적인 SipHash-2-4라는 해시 함수를 래핑합니다.
SipHash-2-4는 범용 암호화 해시 함수가 아닙니다.
매개변수
message
- 해시할 메시지입니다.
key
- 해시 키.