Summery Summery
Decrypt a message encrypted with box().
Syntax Syntax
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)
)
);
}