Function __global->sodium_crypto_box_seal
Definitions
sources_custom/phpstub.php
- Encrypt a message such that only the recipient can decrypt it.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$message | string | required parameter | N/A | N/A | The message to encrypt |
$public_key | string | required parameter | N/A | N/A | The public key that corresponds to the only key that can decrypt the message |
Return
- A ciphertext string in the format of (one-time public key, encrypted message, authentication tag)
- Type: string
- Set: N/A
- Range: N/A