fork download
  1. using System;
  2. using System.Text;
  3. using System.Security.Cryptography;
  4.  
  5. public class Program {
  6. public static void Main() {
  7. var sha512 = new SHA512Managed();
  8. byte[] hash = sha512.ComputeHash(Encoding.UTF8.GetBytes("teste"));
  9. var result = new StringBuilder();
  10. foreach (byte b in hash) result.Append($"{b:x2}");
  11. Console.WriteLine(result);
  12. }
  13. }
  14.  
  15. //https://pt.stackoverflow.com/q/327973/101
Success #stdin #stdout 0.02s 16316KB
stdin
Standard input is empty
stdout
b123e9e19d217169b981a61188920f9d28638709a5132201684d792b9264271b7f09157ed4321b1c097f7a4abecfc0977d40a7ee599c845883bd1074ca23c4af