mcrypt function very slow

June 23, 2016 245 views
PHP Ubuntu


When I run this one-line script on my droplet:

    echo base64_encode( mcrypt_create_iv( 32 ) );

it takes more than 10 minutes to finish. Which is weird since on other servers, it give a response instantly.

Any idea how I can make it run fast?


2 Answers

I just ran that on my droplet, and it took less than 1 second. Just a regular php install.

Have another answer? Share your knowledge.