Example #1
0
        public static void GetXml(string strVal)
        {
            XmlDocument dom = new XmlDocument();

            dom.LoadXml(strVal);
            XmlElement root = dom.DocumentElement;

            foreach (XmlNode node in root)
            {
                if (!string.IsNullOrEmpty(node.Value))
                {
                    TextEncrypt.Base64Decode(node.Value);
                }
            }
        }
Example #2
0
 /*
  * /// <summary>
  * /// 以 32 位 MD5 加密加CookieToken后缀的形式产生 cookie 密文
  * /// </summary>
  * /// <param name="s"></param>
  * /// <returns></returns>
  * public static string GenerateToken(string s)
  * {
  *  if ((s == null) || (0 == s.Length))
  *  {
  *      s = string.Empty;
  *  }
  *  return MD5(s + ApplicationSettings.Get("CookieToken"));
  * }*/
 /// <summary>
 ///  32 位 MD5 加密
 /// </summary>
 /// <param name="s"></param>
 /// <returns></returns>
 public static string MD5(string s)
 {
     return(TextEncrypt.MD5EncryptPassword(s));
 }