[Solved] PHP: Does password_hash() check if the hash generated is unique? (Understanding!)

[ad_1]

No.

Two reasons:

  • the function will not know anything about “other” passwords.
  • You don’t want this. What will you do if you hit a duplicate? Tell the user? He will then know someone’s password.

[ad_2]

solved PHP: Does password_hash() check if the hash generated is unique? (Understanding!)