Work with BCrypt.net

I work with a user membership system in ASP.NET MVC3 ( here) . And I want to use BCrypt . My question is about the BCrypt.net argument BCrypt.net . those. the minimum and maximum length of the string that BCrypt can hash it, the minimum / maximum length of salt , and the length of the output string. Actually I am creating a database now and I want to know how to set the password column in db. those. nvarchar(256) or anything else? Thanks in advance.

+4
source share
1 answer

The BCrypt algorithm includes salt in the hash, so you do not need to have 2 separate columns in your database to store the hash and password. You can check out this sample implementation . It creates 60 hashes no matter how long the plaintext password has.

+6
source

Source: https://habr.com/ru/post/1397110/


All Articles