最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

password - wp_hash_password create a different hash everytime

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论