How do I check if a user entered password matches a password that has been hashed and stored into a database by somebody else. Normally you would use this right?:
bool value = BCryptHelper.CheckPassword("Tom123", passwordHash);
So what if you don't have the passwordHash variable which contains the hashed password?
I don't have a great understanding of how BCrypt works so I think I am missing something very simple.
Here is a hint to the answer. You can follow the link for further detailed information.
string salt = BCryptHelper.GenerateSalt(6);
var passwordHash= BCryptHelper.HashPassword("Tom123", salt);
bool value = BCryptHelper.CheckPassword("Tom123", passwordHash);