細水長流

phpMyAdmin 提示密文(blowfish_secret)太短怎么解决?

服务器如使用 phpMyAdmin 5.2.0 版本,登录进去底部会提示「配置文件中的密文 (blowfish_secret) 太短。它应该有 32 字节。」如何解决?

「phpMyAdmin 提示密文(blowfish_secret)太短怎么解决?:https://uxtt.com/phpmyadmin-blowfish_secret-short-resolve」

新版本已修复,本文备份一下旧版本解决方法。

既然提示「配置文件中的密文 (blowfish_secret) 太短。它应该有 32 字节。」,那就按要求修改 phpMyAdmin 目录下 config.inc.php 配置文件就好了吧?

「phpMyAdmin 提示密文(blowfish_secret)太短怎么解决?:https://uxtt.com/phpmyadmin-blowfish_secret-short-resolve」

不过,打开 config.inc.php 配置文件,会发现 $cfg['blowfish_secret'] 已经定义赋值,并且长度远超 32 字节,为啥还会提示错误?

答案是:这个版本有 Bug。blowfish_secret Needs to be 32 chars long.(blowfish_secret 只能是 32 字节,不能短,也不能长

按理,应该越长越安全?就算不行,它也应该提示「配置文件中的密文 (blowfish_secret) 太。它应该有 32 字节。」

「phpMyAdmin 提示密文(blowfish_secret)太短怎么解决?:https://uxtt.com/phpmyadmin-blowfish_secret-short-resolve」

怎么解决?

1、如果 blowfish_secret 长度超 32 字节,且没有强迫症,直接无视即可。

2、如果想把这个提示处理掉,那就使用 LastPass 之类工具生成一个正好 32 位长度字符串,可大小写字母、数字、符号混合,将默认的 blowfish_secret 值替换掉,刷新页面即可。

「phpMyAdmin 提示密文(blowfish_secret)太短怎么解决?:https://uxtt.com/phpmyadmin-blowfish_secret-short-resolve」

退出移动版