ParagonIE_Sodium_Crypto32::box_seed_keypair

Advertisement

Syntax Syntax

ParagonIE_Sodium_Crypto32::box_seed_keypair( string $seed )

Parameters Parameters

$seed

(Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Crypto32.php

    public static function box_seed_keypair($seed)
    {
        $sKey = ParagonIE_Sodium_Core32_Util::substr(
            hash('sha512', $seed, true),
            0,
            32
        );
        $pKey = self::scalarmult_base($sKey);
        return $sKey . $pKey;
    }

Advertisement

Advertisement

Leave a Reply