sodium_crypto_secretbox

PHP 7 >= 7.2.0, PHP 8
sodium_crypto_secretbox - Authenticated shared-key encryption
Manual
Code Examples

Example #1 sodium_crypto_secretbox example

Result: string(78) "3a1fa3e9f7b72ef8be51d40abf8e296c6899c185d07b18b4c93e7f26aa776d24c50852cd6b1076" string(23) "message to be encrypted"
PHP Version:


Function sodium_crypto_secretbox:

Sodium Functions

Most used PHP functions