Generate hash of a text

suggest change
public static string TextToHash(string text)
  {
      var sh = SHA1.Create();
      var hash = new StringBuilder();
      byte[] bytes = Encoding.UTF8.GetBytes(text);
      byte[] b = sh.ComputeHash(bytes);
      foreach (byte a in b)
      {
          var h = a.ToString("x2");
          hash.Append(h);
      }
      return hash.ToString();
  }

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents