bcrypt.net

Where to find documentation on BCrypt for .NET? [closed]

♀尐吖头ヾ 提交于 2019-12-25 02:23:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I used NuGet to get the BCrypt library and it's installed properly. Now I'd like to read about it and how to use it, yet I can't seem to find any documentation. Even searching for the libraries namespace yielded no results: DevOne.Security.Cryptography.BCrypt Any suggestions on where to find some examples, or even

jBCrypt 0.3 C# Port (BCrypt.net)

戏子无情 提交于 2019-12-24 00:56:00
问题 After looking into a bug in the original jBCrypt v0.1 C# port: BCrypt.net (Related Question). I decided to compare the new jBCrypt code against the old C# port to look for discrepancies and potential issues like the related question's bug. Here is what I've found: // original java (jBCrypt v0.3): private static int streamtoword(byte data[], int offp[]) { int i; int word = 0; int off = offp[0]; for (i = 0; i < 4; i++) { word = (word << 8) | (data[off] & 0xff); off = (off + 1) % data.length; }

Adding a custom hashAlgorithmType in C# ASP.NET

扶醉桌前 提交于 2019-12-21 02:54:30
问题 I've got a page that I need to beef up security on. I'm using the built-in MembershipProvider functionality and currently have hashAlgorithmType set to SHA512. I've got the BCrypt.NET library (http://bcrypt.codeplex.com/) and it seems to be working nicely when I call its functions from code but I'm having the worst time figuring out how to create the appropriate <cryptographySettings> section in Web.config to let me create a hashAlgorithmType . I found the following code snippet on the web:

.net implementation of bcrypt

送分小仙女□ 提交于 2019-12-17 08:05:14
问题 Does anyone know of a good implementation of bcrypt, I know this question has been asked before but it got very little response. I'm a bit unsure of just picking an implementation that turns up in google and am thinking that I may be better off using sha256 in the System.Security.Cryptography namespace, at least then I know it's supported! What are you thoughts? 回答1: It sounds like you are looking for BCrypt.net: BCrypt.net is an implementation of OpenBSD's Blowfish-based password hashing

Why is the hash generated by BCrypt non-deterministic

久未见 提交于 2019-12-13 12:38:08
问题 I've worked with a number of different hashing algorithms in the past and I was under the impression that they were all deterministic. I just switched some of my code to use BCrypt.Net and I have to admit I was completely stumped when all of my comparison tests failed. After looking for errors in my test for an embarrassing amount of time I realized that my assumption that the hashes are deterministic was completely incorrect. There is a verify method which works and it was easy enough to fix

Adding a custom hashAlgorithmType in C# ASP.NET

眉间皱痕 提交于 2019-12-03 08:48:29
I've got a page that I need to beef up security on. I'm using the built-in MembershipProvider functionality and currently have hashAlgorithmType set to SHA512. I've got the BCrypt.NET library (http://bcrypt.codeplex.com/) and it seems to be working nicely when I call its functions from code but I'm having the worst time figuring out how to create the appropriate <cryptographySettings> section in Web.config to let me create a hashAlgorithmType . I found the following code snippet on the web: <mscorlib> <cryptographySettings> <cryptoNameMapping> <cryptoClasses> <cryptoClass MyHash="MyHashClass,

.Net implementation of bcrypt, which implements HashAlgorithm?

大憨熊 提交于 2019-11-30 04:07:08
I'm looking to allow bcrypt support in my authentication library. One of the problems right now is that I assume that the hasher will be of type HashAlgorithm . Bcrypt.net does not implement this class. Also, it's sealed so I would have to make my own branch off of it and modify it myself. Are there any better alternatives that already implement HashAlgorithm? Try this: public class BCryptHasher : HashAlgorithm { private MemoryStream passwordStream = null; protected override void HashCore(byte[] array, int ibStart, int cbSize) { if (passwordStream == null || Salt == null) Initialize();

.Net implementation of bcrypt, which implements HashAlgorithm?

流过昼夜 提交于 2019-11-29 01:55:18
问题 I'm looking to allow bcrypt support in my authentication library. One of the problems right now is that I assume that the hasher will be of type HashAlgorithm . Bcrypt.net does not implement this class. Also, it's sealed so I would have to make my own branch off of it and modify it myself. Are there any better alternatives that already implement HashAlgorithm? 回答1: Try this: public class BCryptHasher : HashAlgorithm { private MemoryStream passwordStream = null; protected override void

Why does BCrypt.net GenerateSalt(31) return straight away?

与世无争的帅哥 提交于 2019-11-28 06:51:42
I stumbled across BCrypt.net after reading Jeff Atwood's post about storing passwords which led me to Thomas Ptacek's recommendation to use BCrypt to store passwords. Which finally led me to this C# implementation of BCrypt In the comments on the last link above someone asked "Why do GenerateSalt(30) take for ever, but GenerateSalt(31) seems to take no time at all?" I ran BCrypt.HashPassword(password, BCrypt.GenerateSalt(31)) and got my result in 0 milliseconds. I've been running BCrypt.HashPassword("password", BCrypt.GenerateSalt(30)) for over 5 minutes now and still do not have a result. I

.net implementation of bcrypt

给你一囗甜甜゛ 提交于 2019-11-27 06:13:20
Does anyone know of a good implementation of bcrypt, I know this question has been asked before but it got very little response. I'm a bit unsure of just picking an implementation that turns up in google and am thinking that I may be better off using sha256 in the System.Security.Cryptography namespace, at least then I know it's supported! What are you thoughts? It sounds like you are looking for BCrypt.net : BCrypt.net is an implementation of OpenBSD's Blowfish-based password hashing code, described in "A Future-Adaptable Password Scheme" by Niels Provos and David Mazières. It is a direct