crypto_box_open

Advertisement

Syntax Syntax

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/sodium_compat.php

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

Advertisement

See also See also

Advertisement

Leave a Reply