admin管理员组文章数量:1391947
I've already seen this topic: wp_hash_password unexpected behaviour
And the problem is similar. I'm creating an API system where api_key and api_secret are the same as username and user_pwd. The problem is that, of course, i can't know the user password, so it will be the same encrypted password from the DB.
The user will put his password, so i need to encrypt it in the same way as wordpress and compare it to the password/key in the DB.
But from what i've seen, everytime i use wp_hash_password(password) i get a different hash. So how wordpress can compare the hash with the one in the DB? How can i get the same hash to compare it?
Thank you in advance.
本文标签: passwordwphashpassword create a different hash everytime
版权声明:本文标题:password - wp_hash_password create a different hash everytime 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744748364a2623025.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论