BCrypt : EnhancedVerify() doesn't work
Hi ! I'm using BCrypt to hash passwords. The method EnhancedHashPassword() works, but the method EnhancedVerify() doesn't. I have this error during the execution :
I'm reading in some old forums that there is a bug in the update of those 2 methods. The hashing one converts in a 2a hashing, whereas the verifying method convets in 2y.
Well, this post was 10 years ago. Is still not working ?
Did you find a way to work with it ? Thank you
Here my code :
2 Replies
if (BCrypt.Net.BCrypt.Verify(password.Text, passdb))
{
// logged in
}
// not logged in
I also had to change the hashing method too -> .
It works, thank you 🙂