ASP.NET MVC 3 app, BCrypt.CheckPassword failing

后端 未结 3 1471
我寻月下人不归
我寻月下人不归 2021-01-14 04:23

I\'m working on implementing security in an ASP.NET MVC 3 application, and am using the BCrypt implementation found here to handle encryption and verification of passwords.

3条回答
  •  星月不相逢
    2021-01-14 04:44

    I had the same problem. BCryptHelper.CheckPassword always returns false

    I found that the the hashed string was stored in the db as a nchar(). This caused the check to always fail. I changed this to char() and it works.

提交回复
热议问题