Function __global->sodium_crypto_secretbox
Definitions
sources_custom/phpstub.php
- Encrypt a message with a symmetric (shared) key.
- 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 plaintext message to encrypt |
$nonce | string | required parameter | N/A | N/A | A random 24-byte string to use only for this encryption |
$key | string | required parameter | N/A | N/A | The 256-bit encryption key to use |
Return
- The encrypted text
- Type: string
- Set: N/A
- Range: N/A