(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_aead_aes256gcm_decrypt — Verify then decrypt a message with AES-256-GCM
$ciphertext,$additional_data,$nonce,$keyVerify then decrypt with AES-256-GCM. Only available if sodium_crypto_aead_aes256gcm_is_available() returns true.
ciphertextadditional_datanoncekeyReturns the plaintext on success, or false on failure.