WordPress at a glance
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.


String. Null. Nothing.


$result = ParagonIE_Sodium_Compat::crypto_sign_keypair();

Code of ParagonIE_Sodium_Compat::crypto_sign_keypair() WP 5.7

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();