Beispiel #1
0
        public static String GetEncryptedCookieValue(String key)
        {   //获取使用DES解密后的Cookie
            key = EncryptString.Encrypt(key);
            String valueString = GetCookieValue(key);

            valueString = EncryptString.Decrypt(valueString);
            return(valueString);
        }
Beispiel #2
0
 public static void SetEncryptedCookie(String key, String valueString, DateTime expires)
 {   //设置使用DES加密后的Cookie,并设置Cookie的有效时间
     key         = EncryptString.Encrypt(key);
     valueString = EncryptString.Encrypt(valueString);
     SetCookie(key, valueString, expires);
 }
Beispiel #3
0
 public static void SetEncryptedCookie(String key, String valueString)
 {   //设置使用DES加密后的Cookie
     key         = EncryptString.Encrypt(key);
     valueString = EncryptString.Encrypt(valueString);
     SetCookie(key, valueString);
 }