php - Security::hash() 不返回相同的哈希值

标签 php linux cakephp cakephp-2.0

我在新网站中做了很多更改。

我刚刚注意到 Security::hash('password', null, true) 不会返回与以前版本相同的内容。

我将 cake 从 2.3.1 升级到 2.3.9,但我使用相同 'Security.salt''Security.cipherSeed' 值。

我可以检查什么?

谢谢!

最佳答案

我在 CahePHP 2.3.5 变更日志中读到,您不应该使用 Security.cipher,因为它已被弃用。 https://github.com/cakephp/cakephp/commit/06e7ba6

尝试使用除 hash('password', null, true) 之外的其他 hash() 参数进行实验,测试文档中的示例:http://book.cakephp.org/2.0/en/core-utility-libraries/security.html#Security::hash

关于php - Security::hash() 不返回相同的哈希值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18330719/

相关文章:

php - PHP代码中插入并调用JS

php - 我在哪里可以找到 RedHat 7 的 php-pgsql 包?

cakephp - 通过 Composer 安装 CakePHP 插件和助手

cakephp - Find() 以数组为条件 : Undefined offset: 1

php - CakePHP - 表命名约定

PHP正则表达式替换链接url

php - 使用 SQLite 和 PHP 在边界框中选择地理点?

linux - 完全合格的域名是否需要句点?

linux - .so、.la 和 .a 库文件有什么区别?

c++ - 如何并行运行Qt GUI和Linux消息队列接收线程?