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