I found an example of encrypting a string with SHA512.
public static string HashedString(string text)
{
SHA512Managed sha512 = new SHA512Managed();
byte[] hash = sha512.ComputeHash(Encoding.UTF8.GetBytes(text));
StringBuilder result = new StringBuilder();
foreach (byte b in hash)
result.Append(b);
return result.ToString();
}
But when I print on the screen the return of this method I realize that the result is in binary and I want it in hex.