sodium_crypto_box_seal_open

PHP 7 >= 7.2.0, PHP 8
sodium_crypto_box_seal_open - Anonymous public-key decryption
Manual
Code Examples

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.

Example of sodium_crypto_box_seal_open

Show all examples for sodium_crypto_box_seal_open

PHP Version:


Function sodium_crypto_box_seal_open:

Sodium Functions

Most used PHP functions