(PHP 7 >= 7.2.0)
sodium_crypto_aead_chacha20poly1305_decrypt — Verify that the ciphertext includes a valid tag
$ciphertext
, string $ad
, string $nonce
, string $key
) : string
锟斤拷锟斤拷锟斤拷锟斤拷未锟斤拷写锟侥碉拷锟斤拷锟斤拷锟叫诧拷锟斤拷锟叫憋拷
ciphertext
ad
nonce
key