public static void Main()
Console.WriteLine(computeHash("Test"));
private static string computeHash( string hashString ) {
using( System.Security.Cryptography.SHA256 encrypter = System.Security.Cryptography.SHA256.Create() ) {
byte[] strBytes = Encoding.UTF8.GetBytes( hashString );
byte[] encryptedBytes = encrypter.ComputeHash( strBytes );
return Convert.ToBase64String( encryptedBytes );