sodium_crypto_secretbox

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Authenticated shared-key encryption
<?php sodium_crypto_secretbox(string $message, string $nonce, string $key): string