Requirements
These functions work using » mcrypt. To use it, download libmcrypt-x.x.tar.gz from » http://mcrypt.sourceforge.net/ and follow the included installation instructions.
As of PHP 5.0.0 you will need libmcrypt Version 2.5.6 or greater.
Windows users will find the library is the PHP 5.2 Windows binaries release. PHP 5.3 Windows binaries uses the static version of the MCrypt library, no DLL are needed.
If you linked against libmcrypt 2.4.x or higher, the following additional block algorithms are supported: CAST, LOKI97, RIJNDAEL, SAFERPLUS, SERPENT and the following stream ciphers: ENIGMA (crypt), PANAMA, RC4 and WAKE. With libmcrypt 2.4.x or higher another cipher mode is also available; nOFB.
Коментарии
If installing libmcrypt from RPM, you need both libmcrypt*.rpm and libmcrypt-devel*.rpm. I found RPMs for both were available for most platforms on this page:
http://rpmforge.net/user/packages/libmcrypt/
Also files.edin.dk does not seem to carry the win32 files anymore.
mcrypt is built in for PHP 5.3.x on windows, you don't need to do anything with a dll anymore.
Both mcrypt and libmcrypt are available through the linked website. You simply have to click the "Browse all files" or similar link once on the "development site" and not just look for the default Sourceforge download button.
there are no instructions included with the sourceforge download.
After php 5.3 mcrypt is automatically included and enabled.
(i was looking to enable an extension)
On linux:
sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 restart