/// <summary> /// Gets MD5 hash of a string /// </summary> /// <param name="str">String</param> /// <returns>MD5 hash as string</returns> public static string MD5(string str) { #if SILVERLIGHT byte[] bytes = Encoding.UTF8.GetBytes(str); #else byte[] bytes = ASCIIEncoding.Default.GetBytes(str); #endif return(ByteUtility.MD5(bytes)); }
/// <summary> /// Gets MD5 hash of a string /// </summary> /// <param name="str">String</param> /// <returns>MD5 hash as string</returns> public static string MD5(string str) { byte[] bytes = ASCIIEncoding.Default.GetBytes(str); return(ByteUtility.MD5(bytes)); }