crypto_box_open

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

WordPress Version: 2.1

/**
 * @see ParagonIE_Sodium_Compat::crypto_box_open()
 * @param string $message
 * @param string $nonce
 * @param string $kp
 * @return string|bool
 */
function crypto_box_open($message, $nonce, $kp)
{
    try {
        return ParagonIE_Sodium_Compat::crypto_box_open($message, $nonce, $kp);
    } catch (\TypeError $ex) {
        return false;
    } catch (\SodiumException $ex) {
        return false;
    }
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::crypto_box_open()
 * @param string $message
 * @param string $nonce
 * @param string $kp
 * @return string|bool
 * @throws \SodiumException
 * @throws \TypeError
 */
function crypto_box_open($message, $nonce, $kp)
{
    try {
        return ParagonIE_Sodium_Compat::crypto_box_open($message, $nonce, $kp);
    } catch (Error $ex) {
        return false;
    } catch (Exception $ex) {
        return false;
    }
}