public static string Load(string key) { key = EncryptKey(key); var value = CookieHelper.Load(key); if (string.IsNullOrEmpty(value)) { return(string.Empty); } else { return(EncryptStringHelper.Decrypt(value)); } }
private static string EncryptValue(string o) { return(EncryptStringHelper.Encrypt(o)); }
private static string EncryptKey(string o) { return(EncryptStringHelper.Encrypt(o).Replace("=", string.Empty)); }