摘要:
1 using System; 2 using System.Text; 3 using System.Xml; 4 5 class XmlOperate 6 { 7 private XmlDocument xmlDocument; 8 9 private void CreateXmlFile(string filePath) 10 { 11 xmlDocument = new XmlDocument(); 12 XmlDeclaration xmlDeclaration = xmlDocume... 阅读全文
摘要:
public static string GetMD5(string s) { /// <summary> /// 与ASP兼容的MD5加密算法 /// </summary> MD5 md5 = new MD5CryptoServiceProvider(); byte[] t = md5.ComputeHash(Encoding.GetEncoding("gb2312").GetBytes(s)); StringBuilder sb = new StringBui... 阅读全文