password - wp_hash_password create a different hash everytime

I've already seen this topic: wp_hash_password unexpected behaviour And the problem is similar.I'm creating a

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744748365a4591443.html

相关推荐

  • password - wp_hash_password create a different hash everytime

    I've already seen this topic: wp_hash_password unexpected behaviour And the problem is similar.I'm creating a

    11小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信