crypto_aead_chacha20poly1305_ietf_encrypt

The timeline below displays how wordpress function crypto_aead_chacha20poly1305_ietf_encrypt has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt()
 * @param string $message
 * @param string $assocData
 * @param string $nonce
 * @param string $key
 * @return string
 * @throws \SodiumException
 * @throws \TypeError
 */
function crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
{
    return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key);
}