php8.5
Home/ Manual/ sodium / functions/ sodium_crypto_sign_detached

sodium_crypto_sign_detached

PHP function Edit on GitHub ✎

(PHP 7 >= 7.2.0, PHP 8)

Sign the message

Description

sodium_crypto_sign_detached(string $message, string $secret_key): string

Sign a message with a secret key, that can be verified by the corresponding public key. This function returns a detached signature.

Parameters

message

Message to sign.

secret_key

Secret key. See sodium_crypto_sign_secretkey()

Return Values

Cryptographic signature.

Source: reference/sodium/functions/sodium-crypto-sign-detached.xml · from the official PHP manual (php/doc-en)