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


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.

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