ParagonIE_Sodium_Crypto::box_open

Advertisement

Summery Summery

Decrypt a message encrypted with box().

Syntax Syntax

ParagonIE_Sodium_Crypto::box_open( string $ciphertext, string $nonce, string $keypair )

Parameters Parameters

$ciphertext

(Required)

$nonce

(Required)

$keypair

(Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Crypto.php

    public static function box_open($ciphertext, $nonce, $keypair)
    {
        return self::secretbox_open(
            $ciphertext,
            $nonce,
            self::box_beforenm(
                self::box_secretkey($keypair),
                self::box_publickey($keypair)
            )
        );
    }

Advertisement

Advertisement

Leave a Reply