WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Compat::crypto_sign_keypair() public WP 1.0

Generate a new random Ed25519 keypair.

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

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Compat::crypto_sign_keypair();

Code of ParagonIE_Sodium_Compat::crypto_sign_keypair() WP 5.8.2

public static function crypto_sign_keypair()
{
    if (self::useNewSodiumAPI()) {
        return sodium_crypto_sign_keypair();
    }
    if (self::use_fallback('crypto_sign_keypair')) {
        return (string) call_user_func('\\Sodium\\crypto_sign_keypair');
    }
    if (PHP_INT_SIZE === 4) {
        return ParagonIE_Sodium_Core32_Ed25519::keypair();
    }
    return ParagonIE_Sodium_Core_Ed25519::keypair();
}