sodium_crypto_box

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

WordPress Version: 6.1

/**
 * @see ParagonIE_Sodium_Compat::crypto_box()
 * @param string $message
 * @param string $nonce
 * @param string $key_pair
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_crypto_box($message, $nonce, $key_pair)
{
    return ParagonIE_Sodium_Compat::crypto_box($message, $nonce, $key_pair);
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_box()
 * @param string $message
 * @param string $nonce
 * @param string $kp
 * @return string
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_crypto_box($message, $nonce, $kp)
{
    return ParagonIE_Sodium_Compat::crypto_box($message, $nonce, $kp);
}