Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<sodium_crypto_sign_keypair_from_secretkey_and_publickeysodium_crypto_sign_publickey>
^Sodium FunctionsLast updated: Mon, 26 Oct 2026

sodium_crypto_sign_open

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_open — Check that the signed message has a valid signature

Description

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

Verify the signature attached to a message and return the message

Parameters

signed_message

A message signed with sodium_crypto_sign()

public_key

An Ed25519 public key

Return Values

Returns the original signed message on success, or false on failure.


<sodium_crypto_sign_keypair_from_secretkey_and_publickeysodium_crypto_sign_publickey>
^Sodium FunctionsLast updated: Mon, 26 Oct 2026