using System.Security.Cryptography;
public static void Main()
SHA256 sha256 = new SHA256CryptoServiceProvider();
byte[] source = Encoding.Default.GetBytes("Password1");
byte[] crypto = sha256.ComputeHash(source);
string result = Convert.ToBase64String(crypto);
Console.Write("SHA256: " + result);