Report this

What is the reason for this report?

mcrypt function very slow

Posted on June 23, 2016

Hello,

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

<?php
    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?

Thanks,



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.