array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.sodium-crypto-sign-open.php', 1 => 'sodium_crypto_sign_open', 2 => 'Check that the signed message has a valid signature', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium Funktionen', ), 'prev' => array ( 0 => 'function.sodium-crypto-sign-keypair-from-secretkey-and-publickey.php', 1 => 'sodium_crypto_sign_keypair_from_secretkey_and_publickey', ), 'next' => array ( 0 => 'function.sodium-crypto-sign-publickey.php', 1 => 'sodium_crypto_sign_publickey', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sodium/functions/sodium-crypto-sign-open.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

sodium_crypto_sign_open

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_openCheck that the signed message has a valid signature

Beschreibung

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

Verify the signature attached to a message and return the message

Parameter-Liste

signed_message

A message signed with sodium_crypto_sign()

public_key

An Ed25519 public key

Rückgabewerte

Returns the original signed message on success, Bei einem Fehler wird false zurückgegeben..