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

返回值

add a note add a note

User Contributed Notes 1 note

up
1
joy at codilar dot com
3 months ago
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
To Top