PHP.nl

sodium_crypto_sign

sodium_crypto_sign

Sign a message

string **sodium_crypto_sign** string $message string $secret_key

Sign a message with a secret key, that can be verified by the corresponding public key. This function attaches the signature to the message. See for detached signatures. sodium_crypto_sign_detached

messageMessage to sign.

secret_key Secret key. See sodium_crypto_sign_secretkey

Signed message (not encrypted).