private static string Sha512(string text) { var textBytes = new UnicodeEncoding().GetBytes(text); var hashValue = new SHA512Managed().ComputeHash(textBytes); return hashValue.Aggregate("", (current, x) => current + String.Format("{0:x2}", x)); }