关注服务器优惠动态
及时为您分享新优惠

phpmyadmin报错crypt_random_string requires at least one symmetric cipher be loaded

背景介绍:

打开phpmyadmin登陆框下面报错

phpmyadmin crypt_random_string requires at least one symmetric cipher be loaded

报错原因:

路径问题。

解决办法:

1.进入到phpmyadmin根目录下,打开\libraries\phpseclib\Crypt\Random.php。

2.大概在195行。找到下面代码并把红色背景字体添加进去

 switch (true) {
case phpseclib_resolve_include_path(‘libraries/phpseclib/Crypt/AES.php’):
if (!class_exists(‘Crypt_AES’)) {
include_once ‘AES.php’;
}
$crypto = new Crypt_AES(CRYPT_AES_MODE_CTR);
break;
case phpseclib_resolve_include_path(‘libraries/phpseclib/Crypt/Twofish.php’):
if (!class_exists(‘Crypt_Twofish’)) {
include_once ‘Twofish.php’;
}
$crypto = new Crypt_Twofish(CRYPT_TWOFISH_MODE_CTR);
break;
case phpseclib_resolve_include_path(‘libraries/phpseclib/Crypt/Blowfish.php’):
if (!class_exists(‘Crypt_Blowfish’)) {
include_once ‘Blowfish.php’;
}
$crypto = new Crypt_Blowfish(CRYPT_BLOWFISH_MODE_CTR);
break;
case phpseclib_resolve_include_path(‘libraries/phpseclib/Crypt/TripleDES.php’):
if (!class_exists(‘Crypt_TripleDES’)) {
include_once ‘TripleDES.php’;
}
$crypto = new Crypt_TripleDES(CRYPT_DES_MODE_CTR);
break;
case phpseclib_resolve_include_path(‘libraries/phpseclib/Crypt/DES.php’):
if (!class_exists(‘Crypt_DES’)) {
include_once ‘DES.php’;
}
$crypto = new Crypt_DES(CRYPT_DES_MODE_CTR);
break;
case phpseclib_resolve_include_path(‘libraries/phpseclib/Crypt/RC4.php’):
if (!class_exists(‘Crypt_RC4’)) {
include_once ‘RC4.php’;
}
$crypto = new Crypt_RC4();
break;
default:
user_error(‘crypt_random_string requires at least one symmetric cipher be loaded’);
return false;
}

完美解决。

赞(0) 打赏
转载请注明来源于“上网找”及本文链接:上网找 » phpmyadmin报错crypt_random_string requires at least one symmetric cipher be loaded
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

×
订阅图标按钮
/* 鼠标点击特效 */ /* 网站底部蒲公英特效 */
/* 360自动收录 */ '); })(); /* 百度自动收录 */