sodium_crypto_box

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