using System; using System.Text; using System.Security.Cryptography; public class Program { public static void Main() { var sha512 = new SHA512Managed(); byte[] hash = sha512.ComputeHash(Encoding.UTF8.GetBytes("teste")); var result = new StringBuilder(); foreach (byte b in hash) result.Append($"{b:x2}"); Console.WriteLine(result); } } //https://pt.stackoverflow.com/q/327973/101