ParagonIE_Sodium_Crypto::box_open() public WP 1.0
Decrypt a message encrypted with box().
{} It's a method of the class: ParagonIE_Sodium_Crypto{}
No Hooks.
Return
String
. Null. Nothing.
Usage
$result = ParagonIE_Sodium_Crypto::box_open( $ciphertext, $nonce, $keypair );
- $ciphertext(string) (required)
- -
- $nonce(string) (required)
- -
- $keypair(string) (required)
- -
Code of ParagonIE_Sodium_Crypto::box_open() ParagonIE Sodium Crypto::box open WP 5.7
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)
)
);
}