sodium_crypto_auth
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_auth — 메시지에 대한 태그 계산
설명
sodium_crypto_auth(string $message
, string $key
): string
sodium_crypto_auth()를 통한 대칭 메시지 인증은 무결성을 제공하지만 기밀성은 제공하지 않습니다.
디지털 서명(예: sodium_crypto_sign_detached())과 달리 메시지를 확인할 수 있는 당사자는 자신의 메시지도 인증할 수 있습니다. (따라서 대칭 인증입니다.)
매개변수
message
- 인증하려는 메시지
key
- 인증 키
반환 값
인증 태그