sodium_crypto_sign_open
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_sign_open — Check that the signed message has a valid signature
Beschreibung
$signed_message
, string $public_key
): string|falseVerify 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..