sodium_crypto_sign
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_sign — Sign a message
Beschreibung
$message
, string $secret_key
): stringSign a message with a secret key, that can be verified by the corresponding public key. This function attaches the signature to the message. See sodium_crypto_sign_detached() for detached signatures.
Parameter-Liste
-
message
-
Message to sign.
-
secret_key
-
Secret key. See sodium_crypto_sign_secretkey()
Rückgabewerte
Signed message (not encrypted).