ParagonIE_Sodium_Crypto::box_keypair_from_secretkey_and_publickey

Advertisement

Syntax Syntax

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

Parameters Parameters

$sKey

(Required)

$pKey

(Required)

Return Return

(string)

Source Source

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

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

Advertisement

Advertisement

Leave a Reply