WordPress at a glance
function is not described

ParagonIE_Sodium_Crypto::box() public WP 1.0

X25519 key exchange followed by XSalsa20Poly1305 symmetric encryption

{} It's a method of the class: ParagonIE_Sodium_Crypto{}

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Crypto::box( $plaintext, $nonce, $keypair );
$plaintext(string) (required)
-
$nonce(string) (required)
-
$keypair(string) (required)
-

Code of ParagonIE_Sodium_Crypto::box() WP 5.7.1

<?php
public static function box($plaintext, $nonce, $keypair)
{
    $c = self::secretbox(
        $plaintext,
        $nonce,
        self::box_beforenm(
            self::box_secretkey($keypair),
            self::box_publickey($keypair)
        )
    );
    return $c;
}