什么是phpMyAdmin中的河豚秘密?

Mut*_*ing 21 php blowfish phpmyadmin

关于设置config.inc.php,官方phpMyAdmin文档说

$cfg['blowfish_secret'] = 'theExampleWrites16ValuesHere';  // use here a value of your choice
Run Code Online (Sandbox Code Playgroud)

什么是河豚的秘密?如何生成或选择值?

Dav*_*ave 20

只需使用您喜欢的随机字符串和/或数字.它是一个值,对您的实例和phpMyAdmin的使用是唯一的.

  • 根据文档"推荐密钥长度为32".([链接](https://wiki.archlinux.org/index.php/phpMyAdmin#Add_blowfish_secret_passphrase)).如果您使用的字符串太短,则某些版本的phpmyamdin可能会显示错误消息. (5认同)
  • 有趣的是,如果我输入的字符数超过32个,PHP模块将死于“ Bus Error”(至少在FreeBSD上)。小于该数量当然会触发“河豚秘密太短”错误。 (2认同)