public static string Sha256Hash(string toHash) { var hasher = new Hasher(HashProvider.SHA256); return hasher.HashString(toHash); }
/// <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); }