sodium_crypto_aead_chacha20poly1305_ietf_decrypt()
(PHP 7 >= 7.2.0)
Verify 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
返回值
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