©
Ce document utilise Manuel du site Web PHP chinois Libérer
本扩展是 mcrypt 库的接口,mcrypt 库提供了对多种块算法的支持, 包括:DES,TripleDES,Blowfish (默认), 3-WAY,SAFER-SK64,SAFER-SK128,TWOFISH,TEA,RC2 以及 GOST,并且支持 CBC,OFB,CFB 和 ECB 密码模式。 甚至,它还支持诸如 RC6 和 IDEA 这两种“非免费”的算法。 默认情况下,CFB/OFB 是 8 比特的。
[#1] remi at php dot net [2015-07-07 07:18:33]
This extension rely in libmcrypt which is dead, unmaintained since 2007.
Please don't rely on it, consider switching to well maintained alternatives (openssl, crypt, password hashing functions, phpseclib, password_compat...)
[#2] c dot light93 at gmail dot com [2015-05-24 20:04:50]
if you get a "The mcrypt extension is missing" alert somewhere, use
"sudo php5enmod mcrypt" and restart your server to enable it.
[#3] sujithayur at gmail dot com [2011-11-16 21:15:40]
In linux systems,mcrypt is necessary for installing CMSes like majento. First You need to install the mcrypt library.
If using a Debian-based Linux system, you can run the following commands:
sudo apt-get install php5-mcrypt
then restart the apache server
sudo /etc/init.d/apache2 restart