ParagonIE_Sodium_Core32_Ed25519::keypair() –

You appear to be a bot. Output may be restricted

Description

Usage

$string = ParagonIE_Sodium_Core32_Ed25519::keypair();

Parameters

Returns

string (96 bytes)

Source

File name: wordpress/wp-includes/sodium_compat/src/Core32/Ed25519.php
Lines:

1 to 8 of 8
    public static function keypair()
    {
        $seed = random_bytes(self::SEED_BYTES);
        $pk = '';
        $sk = '';
        self::seed_keypair($pk, $sk, $seed);
        return $sk . $pk;
    }
 

 View on GitHub View on Trac