略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: sodium_crypto_sign_open

2024-12-21

sodium_crypto_sign_open

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_openCheck that the signed message has a valid signature

说明

sodium_crypto_sign_open(string $signed_message, string $public_key): string|false

Verify the signature attached to a message and return the message

参数

signed_message

A message signed with sodium_crypto_sign()

public_key

An Ed25519 public key

返回值

Returns the original signed message on success, 或者在失败时返回 false.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.sodium-crypto-sign-open.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3