sodium_crypto_aead_chacha20poly1305_ietf_decrypt

(PHP 7 >= 7.2.0)

sodium_crypto_aead_chacha20poly1305_ietf_decryptVerify that the ciphertext includes a valid tag

说明

sodium_crypto_aead_chacha20poly1305_ietf_decrypt ( string $ciphertext , string $ad , string $nonce , string $key ) : string

Warning

本函数还未编写文档,仅有参数列表。

参数

ciphertext

ad

nonce

key

返回值

User Contributed Notes

joy at codilar dot com 13-Aug-2019 07:31
sodium_crypto_aead_chacha20poly1305_ietf_decrypt function mentions in its documentation that it'll always return a string. But when passed a malformed input as argument, it returns a boolean