sodium_crypto_auth
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_auth — Compute a tag for the message
Description
Symmetric message authentication via sodium_crypto_auth() provides integrity, but not confidentiality.
Unlike with digital signatures (e.g. sodium_crypto_sign_detached()), any party capable of verifying a message is also capable of authenticating their own messages. (Hence, symmetric authentication.)
Parameters
message
The message you intend to authenticate
key
Authentication key
Return Values
Authentication tag
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
