4

私はカスタム メンバーシップ システムを使用していますASP.NET MVC3(ここで説明します)。そして使いたいBCrypt。私の質問は、BCrypt.net引数の範囲についてです。つまり、ハッシュできる文字列の最小長と最大長、その最小/最大長、および出力文字列の長さです。本当に私は今データベースを作成しています。データベースにパスワード列を設定する方法を知りたいです。すなわち、または何か?BCryptsaltnvarchar(256)

4

1 に答える 1

6

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.

于 2012-02-18T07:25:27.933 に答える