sodium_crypto_box_open

Advertisement

Syntax Syntax

sodium_crypto_box_open( string $message, string $nonce, string $kp )

Parameters Parameters

$message

(Required)

$nonce

(Required)

$kp

(Required)

Return Return

(string|bool)

Source Source

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

    function sodium_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;
        }
    }

Advertisement

See also See also

Advertisement

Leave a Reply