What's needed for PHP's mcrypt_decrypt()?

John picture John · Mar 12, 2009 · Viewed 25.7k times · Source

I have a script that uses mcrypt_decrypt() function, but I get the following error

Fatal error: Call to undefined function mcrypt_decrypt()

What modules/libraries do I need to include to use this function? Or is there another reason I'm getting the error?

Thanks

Answer

Ben picture Ben · Feb 3, 2010

sudo apt-get install php5-mcrypt

works on ubuntu.