.net - Hash Password in C#? Bcrypt/PBKDF2 -


I saw msdn and other resources on how to do this, but I did not get any clear solutions. This is the best I found

I would like to use the hash password in C # or either BCRPT or PBKDF2 (which is related to the BIcript). I like to experiment with how many rounds it is for my computer that a password hashes, although it seems to encrypt all things, while everyone talks about it. I cant figure it out. How do I get a password? It seems that PBKDF2 (RFC 2898?) Is a random number generator and I use GetBytes (zodiac) to make a large selection of my hash size.

I am confused how can I have a password with BCRPT / PBKDF?

PBKDF 2

you were really close to the link you provided He shows you how you can call the function to get PBKDF 2 hash results. However, you were thrown away by the fact that the example was using the generated key for encryption purposes (to create the appropriate "key" derivative work to use as the basic motivation encryption key for PBKDF 1 and 2) . Of course, we do not want to use the output for encryption, but ourselves as a hash

If you want PBKDF2 then you can actually use the written library for this purpose. If you, you can see that this is actually just a thin cover (you guess it).

BCrypt

You want the C # implementation to be named (and what) if you wish to experiment with this version.

Disclaimer: I have not used or tested the libraries I've linked to ... YMMV

Comments