public static T Decrypt(string token) { return(JsonConvert.DeserializeObject <T>(StrCrypto.Decrypt(HttpServerUtility.UrlTokenDecode(token)))); }
public string Encrypt() { return(HttpServerUtility.UrlTokenEncode(StrCrypto.Encrypt(JsonConvert.SerializeObject(this)))); }