ParagonIE_Sodium_Core32_Ed25519::keypair

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Ed25519::keypair()

Return Return

(string) (96 bytes)

Source Source

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

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

Advertisement

Advertisement

Leave a Reply