update page now
Laravel Live Japan

sodium_crypto_auth_verify

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_auth_verifyVerifica que la etiqueta es válida para el mensaje

Descripción

sodium_crypto_auth_verify(string $mac, string $message, #[\SensitiveParameter] string $key): bool

Verifica que la etiqueta es válida para un mensaje y una clave dados.

A diferencia de las firmas digitales (por ejemplo sodium_crypto_sign_verify_detached()), cualquier parte capaz de verificar un mensaje también es capaz de autenticar sus propios mensajes. (De ahí, la autenticación simétrica.)

Parámetros

mac

Etiqueta de autenticación producida por sodium_crypto_auth()

message

Mensaje

key

La clave de autenticación

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error.

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant