哈希空间 Ctrl + F 进行搜索
首页 php手册中文版 CSS中文手册 哈希文档 Markdown在线工具

PHP sodium 组件

sodium_crypto_sign

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_signSign a message

说明

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

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 sodium_crypto_sign_detached() for detached signatures.

参数

message

Message to sign.

secret_key

Secret key. See sodium_crypto_sign_secretkey()

返回值

Signed message (not encrypted).

打开 哈希空间 微信小程序中查看更佳