I'm working a custom membership system in ASP.NET MVC3
( explained here ). And I want to use BCrypt
. My question is about BCrypt.net
arguments range. ie the minimum and maximum length of string that BCrypt
can hash it, that min/max length of salt
, and also the output string's length. Really I'm creating database now, and I want to know how to set password column in db. ie nvarchar(256)
or anything else?
The BCrypt algorithm incorporates the salt into the hash so you don't need to have 2 separate columns in your database to store the hash and the password. You may checkout this sample implementation . It produces hashes of length 60 no matter how long the plain text password is.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.