PHP - Manual: sodium_crypto_aead_aegis256_encrypt
2025-10-23
(PHP 8 >= 8.4.0)
sodium_crypto_aead_aegis256_encrypt — Encrypt then authenticate a message with AEGIS-256
$message,$additional_data,$nonce,$keyEncrypt then authenticate a message with AEGIS-256.
messageadditional_datanoncekeyReturns the ciphertext and authentication tag as a string of raw binary bytes.
官方地址:https://www.php.net/manual/en/function.sodium-crypto-aead-aegis256-encrypt.php