PHP 7.4.22 Released!

sodium_crypto_auth_verify

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_auth_verifyVerifies that the tag is valid for the message

Description

sodium_crypto_auth_verify(string $mac, string $message, string $key): bool

Verify the authentication tag is valid for a given message and key.

Unlike with digital signatures (e.g. sodium_crypto_sign_verify_detached()), any party capable of verifying a message is also capable of authenticating their own messages. (Hence, symmetric authentication.)

Liste de paramètres

mac

Authentication tag produced by sodium_crypto_auth()

message

Message

key

Authentication key

Valeurs de retour

Cette fonction retourne true en cas de succès ou false si une erreur survient.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top