public static string GetMd5(object obj) { if (obj == null) { throw new ArgumentNullException("obj"); } byte[] datas = SerializeHelper.ObjectToDataContractByte(obj, obj.GetType()); return(MD5Core.GetHashString(datas)); }
public static string GetMd5(byte[] datas) { return(MD5Core.GetHashString(datas)); }