sodium_crypto_sign_detached

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_detachedSign the message

说明

sodium_crypto_sign_detached(string $message, #[\SensitiveParameter] 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.

参数

message

Message to sign.

secret_key

Secret key. See sodium_crypto_sign_secretkey()

返回值

Cryptographic signature.

add a note

User Contributed Notes

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