sodium_crypto_auth
sodium_crypto_auth
Compute a tag for the message
string **sodium_crypto_auth** string $message string $key
Symmetric message authentication via provides
integrity, but not confidentiality.
sodium_crypto_auth
Unlike with digital signatures (e.g. ),
any party capable of verifying a message is also capable of authenticating
their own messages. (Hence, symmetric authentication.)
sodium_crypto_sign_detached
messageThe message you intend to authenticate
keyAuthentication key
Authentication tag