コード例 #1
0
 public string GetTextDescript(string text)
 {
     try
     {
         byte[] bytes = HexEncoding.GetBytes(text.Substring(0, 16));
         return(Encoding.UTF8.GetString(new Decryptor(EncryptionAlgorithm.TripleDes)
         {
             IV = bytes
         }.Decrypt(HexEncoding.GetBytes(text.Substring(16, text.Length - 16)), this.key)));
     }
     catch (SystemException ex)
     {
         ex.ToString();
         this.Error = true;
         return("");
     }
 }