WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Crypto32::box_keypair() public WP 1.0

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

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Crypto32::box_keypair();

Code of ParagonIE_Sodium_Crypto32::box_keypair() WP 5.8.2

public static function box_keypair()
{
    $sKey = random_bytes(32);
    $pKey = self::scalarmult_base($sKey);
    return $sKey . $pKey;
}