public static string getHashSha256(string text) { byte[] bytes = Encoding.UTF8.GetBytes(text); SHA256Managed hashstring = new SHA256Managed(); byte[] hash = hashstring.ComputeHash(bytes); string hashString = string.Empty; foreach (byte x in hash) { hashString += String.Format("{0:x2}", x); } return hashString; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)