I need a method for encrypting a string with SHA256 or SHA1 algorithm. I have read alot about it on the internet (and EE), but still can't find an easy solution to accomplish this:
string encoded = SHA256(string input);
So far I have played around with System.Security.Cryptograp
hy which has SHA1 and SHA256 but I am not sure how to create correct hex-strings with any of them...
Really need some code to accomplish this task....