示例#1
0
 /// <summary>
 /// 返回论坛用户密码cookie明文
 /// </summary>
 /// <param name="password">密码密文</param>
 /// <param name="key">密钥</param>
 /// <returns></returns>
 public static string GetCookiePassword(string password, string key)
 {
     return(DES.Decode(password, key));
 }
示例#2
0
 /// <summary>
 /// 返回论坛用户密码cookie明文
 /// </summary>
 /// <param name="key">密钥</param>
 /// <returns></returns>
 public static string GetCookiePassword(string key)
 {
     return(DES.Decode(GetCookie("password"), key).Trim());
 }