ParagonIE_Sodium_Crypto32::box_keypair_from_secretkey_and_publickey

Advertisement

Syntax Syntax

ParagonIE_Sodium_Crypto32::box_keypair_from_secretkey_and_publickey( string $sKey, string $pKey )

Parameters Parameters

$sKey

(string) (Required)

$pKey

(string) (Required)

Return Return

(string)

Source Source

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

    public static function box_keypair_from_secretkey_and_publickey($sKey, $pKey)
    {
        return ParagonIE_Sodium_Core32_Util::substr($sKey, 0, 32) .
            ParagonIE_Sodium_Core32_Util::substr($pKey, 0, 32);
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.