gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 04:12:37 27 4
gpt4 key购买 nike

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

我刚刚注意到 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com