I have a technical question regarding password_hash()
& password_verify()
.
If I run a sample password through password_hash()
many times, I get a different result each time. I guess that’s a Good Thing.
The question is how does password_verify()
actually verify the candidate password if the actual hash keeps changing?
I ask this question here because it is PHP related.
For those who think this question is a duplicate:
This question is not a duplicated of the linked questions. I am aware that the value changes, and that password_verify_
works with that.
It is a question of how that happens.