我在新网站中做了很多更改。
我刚刚注意到 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/