WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Crypto::box_secretkey() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Crypto{}

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Crypto::box_secretkey( $keypair );
$keypair(string) (required)
-

Code of ParagonIE_Sodium_Crypto::box_secretkey() WP 5.8.2

public static function box_secretkey($keypair)
{
    if (ParagonIE_Sodium_Core_Util::strlen($keypair) !== 64) {
        throw new RangeException(
            'Must be ParagonIE_Sodium_Compat::CRYPTO_BOX_KEYPAIRBYTES bytes long.'
        );
    }
    return ParagonIE_Sodium_Core_Util::substr($keypair, 0, 32);
}