(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_box_open — Authenticated public-key decryption
$ciphertext, string $nonce, #[\SensitiveParameter] string $key_pair): string|falseDecrypt a message using asymmetric (public key) cryptography.
ciphertextnoncekey_pair
Returns the plaintext message on success, or false on failure.