using System.Security.Cryptography;
public static void Main()
Console.WriteLine( HashValue("Amazon2021"));
public static string HashValue(string valueToHash)
byte[] bytes = Encoding.UTF8.GetBytes(valueToHash.Trim());
SHA256Managed hashstring = new SHA256Managed();
byte[] hash = hashstring.ComputeHash(bytes);
string retVal = Convert.ToBase64String(hash);