sodium_crypto_box_seal_open
PHP 7 >= 7.2.0, PHP 8
sodium_crypto_box_seal_open - Anonymous public-key decryption
Manual
sodium_crypto_box_seal_open(
string$ciphertext,
string$key_pair ): string|false
Decrypt a message that was encrypted with sodium_crypto_box_seal
Parameters
- ciphertext
-
The encrypted message
- key_pair
-
The keypair of the recipient. Must include the secret key.
Return Values
The plaintext on success, or false on failure.