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_seed_keypairsodium_crypto_stream>
^Sodium FunctionsLast updated: Mon, 26 Oct 2026

sodium_crypto_sign_verify_detached

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_verify_detached — Verify signature for the message

Description

function sodium_crypto_sign_verify_detached(string $signature, string $message, string $public_key): bool

Verify signature for the message

Parameters

signature

The cryptographic signature obtained from sodium_crypto_sign_detached()

message

The message being verified

public_key

Ed25519 public key

Return Values

Returns true on success or false on failure.


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