Function __global->sodium_crypto_secretbox_open
Definitions
sources_custom/phpstub.php
- Decrypt an encrypted message with a symmetric (shared) key.This should be used to decrypt text from sodium_crypto_secretbox().
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$ciphertext | string | required parameter | N/A | N/A | The encrypted text |
$nonce | string | required parameter | N/A | N/A | The nonce which was used |
$key | string | required parameter | N/A | N/A | The 256-bit encryption key used |
Return
- The decrypted message (false: error)
- Type: ~string
- Set: N/A
- Range: N/A