Function __global->sodium_crypto_box_seal_open
Definitions
sources_custom/phpstub.php
- Decrypt a message that was encrypted with sodium_crypto_box_seal().
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $ciphertext | string | No | No | required parameter | N/A | N/A | The encrypted message |
| $key_pair | string | No | No | required parameter | N/A | N/A | The keypair of the recipient |
Returns
- The decrypted message (false: error)
- Type: ~string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Decrypt a message that was encrypted with sodium_crypto_box_seal().
*
* @param string $ciphertext The encrypted message
* @param string $key_pair The keypair of the recipient
* @return ~string The decrypted message (false: error)
*/
function sodium_crypto_box_seal_open(string $ciphertext, string $key_pair)
* Decrypt a message that was encrypted with sodium_crypto_box_seal().
*
* @param string $ciphertext The encrypted message
* @param string $key_pair The keypair of the recipient
* @return ~string The decrypted message (false: error)
*/
function sodium_crypto_box_seal_open(string $ciphertext, string $key_pair)
