paragonie / paseto

Platform-Agnostic Security Tokens
https://paseto.io
Other
3.23k stars 108 forks source link

AsymmetricSecretKey slow #102

Closed jmurrayrs closed 4 years ago

jmurrayrs commented 4 years ago

Hello! I'm building this example

require __DIR__ . '/vendor/autoload.php';

use ParagonIE\Paseto\Keys\{
    AsymmetricSecretKey,
    SymmetricKey
};  

$privateKey = new AsymmetricSecretKey(sodium_crypto_sign_keypair());
$publicKey = $privateKey->getPublicKey();

$sharedKey = new SymmetricKey(random_bytes(32));

When I ran this code in Eclipse, it stay very slow ! Do I need to use other way for it?

My last test, the code spent 10 minutes to finish! What could be happening?

Thank you!

jmurrayrs commented 4 years ago

I don't know, but this problems occours only in EasyPHP DevServer