ParagonIE_Sodium_Core32_Ed25519::secretkey

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Ed25519::secretkey( string $keypair )

Parameters Parameters

$keypair

(Required)

Return Return

(string)

Source Source

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

    public static function secretkey($keypair)
    {
        if (self::strlen($keypair) !== self::KEYPAIR_BYTES) {
            throw new RangeException('crypto_sign keypair must be 96 bytes long');
        }
        return self::substr($keypair, 0, 64);
    }

Advertisement

Advertisement

Leave a Reply