简体   繁体   中英

how to install an older version of PHP libmcrypt?

I need to use RC6 cipher for my project. But, because the installed mcrypt library in my server is mcrypt version 2.5.8, so it's not support for RC6 cipher. As wrote in http://www.php.net/manual/en/mcrypt.ciphers.php , RC6 128 bit cipher only supported by libmcrypt 2.2.x and 2.4.x.

I have try to find how to install the mcrypt library version 2.2.x or 2.4.x, but i can't find it.

Does anybody know how to install this older version (libmcrypt 2.2.x or 2.2.4)??

this is the link to the 2.2.4 version:

ftp://195.134.99.74/pub/crypto/mcrypt/attic/libmcrypt/old/libmcrypt-2.2.4.tar.gz

remove your mycript:

eg: remove php-mcrypt remove libmcrypt

install from the new package:

eg:

cd /usr/local/src
tar -zxvf libmcrypt-2.2.4.tar.gz
cd /usr/local/src/libmcrypt-2.2.4
./configure --prefix=/usr/local
make
make install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM