Exemplo n.º 1
0
 public static string Sha256Hash(string toHash)
 {
     var hasher = new Hasher(HashProvider.SHA256);
     return hasher.HashString(toHash);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Computes the 32-character hex string MD5 Hash of the passed string
 /// </summary>
 /// <param name="toHash">The string to hash</param>
 /// <returns>32-character hex MD5 hash</returns>
 public static string MD5Hash(string toHash)
 {
     var hasher = new Hasher(HashProvider.MD5);
     return hasher.HashString(toHash);
 }