WordPress at Your Fingertips
function is not described

sodium_crypto_aead_chacha20poly1305_ietf_decrypt() WP 1.0

No Hooks.

Return

String|true|false.

Usage

sodium_crypto_aead_chacha20poly1305_ietf_decrypt( $message, $assocData, $nonce, $key );
$message(string) (required)
-
$assocData(string) (required)
-
$nonce(string) (required)
-
$key(string) (required)
-

Notes

  • See: ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt()

Code of sodium_crypto_aead_chacha20poly1305_ietf_decrypt() WP 5.8.2

function sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
{
    try {
        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key);
    } catch (Error $ex) {
        return false;
    } catch (Exception $ex) {
        return false;
    }
}