Exemplo n.º 1
0
 public xml_request(string DecryptKey, string string_request)
 {
     try
     {
         _isvalid = false;
         // xâu rỗng đưa vào
         if (String.IsNullOrEmpty(string_request))
         {
             return;
         }
         CryptProvider myde = new CryptProvider();
         // giải mã xâu
         source = myde.Decrypt(DecryptKey, string_request);
         // chuyển thành các đối tượng
         doc.LoadXml(source.Trim());
         _isvalid = true;
     }
     catch (Exception ex)
     { throw ex; }
 }
Exemplo n.º 2
0
 public Token Validate(string token)
 {
     return(new TokenParser(CryptProvider.Decrypt(token)).GetToken());
 }
Exemplo n.º 3
0
 public string Request(string xmlstr)
 {
     return(myen.Decrypt(myac.Request(myen.Encrypt(xmlstr))));
 }