sodium_crypto_sign
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_sign — Sign a message
Description
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.
Return Values
Signed message (not encrypted).
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
