I’m trying to create a custom membership system in ASP.NET MVC3.
I know there are many free and open source providers, but I’m doing this to learn more. My question is about encrypting passwords.
Which algorithm do you suggest I use: SHA1, SHA256, MD5, BCrypt, or something else? Also, which way do you suggest to create a password salt?
BCrypt if you need really strong hash. As far as generating the salt is concerned, you could use the RNGCryptoServiceProvider class. Here’s an article that you may checkout. Just replace the SHA1 algorithm used there with BCrypt.