private static string GetServerHash(AsyncServerClient commands) { return(BitConverter.ToString(MD5Core.GetHash(Encoding.UTF8.GetBytes(commands.Url)))); }
/// <summary> /// Generates an MD5 Hash of the passed in string. /// </summary> /// <param name="data">The unhashed string.</param> /// <returns>The MD5 hash string.</returns> public static string MD5Hash(string data) { byte[] hashedBytes = MD5Core.GetHash(data, Encoding.UTF8); return(BitConverter.ToString(hashedBytes).Replace("-", String.Empty).ToLower()); //System.Globalization.CultureInfo.InvariantCulture); }
public byte[] Compute16(byte[] bytes, int offset, int length) { return(MD5Core.GetHash(bytes, offset, length)); }
public byte[] Compute16(byte[] bytes) { return(MD5Core.GetHash(bytes)); }
public byte[] ComputeMD5Hash(byte[] data) { byte[] hashed = MD5Core.GetHash(data); return(hashed); }