public static LoginPageCookie GetLoginPageCookie() { LoginPageCookie result = null; try { result = SerializeUtil.Deserialize <LoginPageCookie>(AESUtil.Decrypt(File.ReadAllText(DataPath + "LoginPageCookie.json"), aesKey)); } catch { } return(result); }
public static Dictionary <string, string> GetHistory() { Dictionary <string, string> result = null; try { if (File.Exists(DataPath + "History.json")) { result = SerializeUtil.Deserialize <Dictionary <string, string> >(AESUtil.Decrypt(File.ReadAllText(DataPath + "History.json"), aesKey)); } } catch { } return(result); }