Hashing passwords with MD5 or sha-256 C#

I'm writing a register form for a application but still having problems with being new to c#.

I am looking to encrypt/hash passwords to md5 or sha-256, preferably sha-256.

Any good examples? I want it to be able to take the information from "string password;" and then hash it and store in the variable "string hPassword;". Any ideas?

43
задан Sean 1 December 2010 в 22:45
поделиться