sodium_crypto_aead_chacha20poly1305_decrypt

Advertisement

Syntax Syntax

sodium_crypto_aead_chacha20poly1305_decrypt( string $message, string $assocData, string $nonce, string $key )

Parameters Parameters

$message

(Required)

$assocData

(Required)

$nonce

(Required)

$key

(Required)

Return Return

(string|bool)

Source Source

File: wp-includes/sodium_compat/lib/php72compat.php

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

Advertisement

See also See also

Advertisement

Leave a Reply