sodium_crypto_box_open() –

You appear to be a bot. Output may be restricted

Description

Usage

$string|bool = sodium_crypto_box_open( $ciphertext, $nonce, $key_pair );

Parameters

$ciphertext
( string ) required
$nonce
( string ) required
$key_pair
( string ) required

Returns

string|bool

Source

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


Lines:

1 to 11 of 11
    function sodium_crypto_box_open($ciphertext, $nonce, $key_pair)
    {
        try {
            return ParagonIE_Sodium_Compat::crypto_box_open($ciphertext, $nonce, $key_pair);
        } catch (Error $ex) {
            return false;
        } catch (Exception $ex) {
            return false;
        }
    }
 

 View on GitHub View on Trac