/// <summary> /// SHA256 64位加密 /// </summary> /// <param name="input"></param> /// <returns></returns> public static string GetSHA256hash(string input) { using (SHA256 sha256 = new SHA256Managed()) { byte[] clearBytes = Encoding.UTF8.GetBytes(input); var hs = sha256.ComputeHash(clearBytes); return BitConverter.ToString(hs).Replace("-", "").ToLower(); } }