title: How to decrypt app.config c# console application on client machine?
body: <p>Currently I work on FTPS upload file program(console application c#) which will be deploy into client machine. As I able to encrypt the app config which contain private information, the only part I can't solve is where the decryption part on client machine which the process is fail. Is there any solution to solve this decryption on client machine? and I saw this site <a href="https://msdn.microsoft.com/library/f3022b39-f17f-48c1-b067-025eab0ce8bc" rel="nofollow noreferrer">https://msdn.microsoft.com/library/f3022b39-f17f-48c1-b067-025eab0ce8bc</a> which explain about import RSA key. but does it work on console application?</p>
  
  <p>here is my app.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;appSettings configProtectionProvider="RsaProtectedConfigurationProvider"&gt;
  &lt;EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
    xmlns="http://www.w3.org/2001/04/xmlenc#"&gt;
    &lt;EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" /&gt;
    &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
      &lt;EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#"&gt;
        &lt;EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" /&gt;
        &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
          &lt;KeyName&gt;Rsa Key&lt;/KeyName&gt;
        &lt;/KeyInfo&gt;
        &lt;CipherData&gt;
          &lt;CipherValue&gt;SnwNpLDpZBo24v2wAlbwIj0WVOct0Rm8Tl95/4tCFeD7SCLpLq7s7At7taWd0uAhkWA24iRplLKen2mWX3Ys0gomJsE1POZAKk/tX/oITE0N3mbHWAbevZk0ZGNSQrlf4vlkNTVc0jhEvoxmRmWQvZNwKNqTaDA+IKvf5xdeC3w=&lt;/CipherValue&gt;
        &lt;/CipherData&gt;
      &lt;/EncryptedKey&gt;
    &lt;/KeyInfo&gt;
    &lt;CipherData&gt;
      &lt;CipherValue&gt;E+I8egRK6OUef73QTdI9T9qc/DAHo+n+V+Bc41nOYPgRdr8CeO0/hdIjEe5DAWVS+2EsH1kT+Mfl9EMhZEvWvxc4sMBjGI5WOIG3FYJ1rYnuxFvQxPJQte3Bdzxt8VKUE4ybU6wxxlV/wORHL+KuqLUSO9QHYmx82qqzhPPFoMokKla647CNEpr5ZyCO5zd5t7NH1tp3hHmlYH3Tt3FwEbgCr94ZxQtmqwnagpsZONbcyr0BXh+L+qfncYHy95kb6ZvtmYrMwPW2efYsxMJqeoyt68SWv33jG0xNcx36jrGv8DVCyyNQXnLDCXE6XMBCi7fteDOMA0A+PAp2EgUYd3OCLw1NIYr49S4Q/xSomGRmsOQpE69KijPBOe/aRWDhLrReVQnS4Pq+OvpoZmQLtS87YqwKk5XrETtzPLUiBLH+wxoksK1OQqKZskMI0UgDADoK/bRsNoc7USWMgNkKTxMuRP8cpApZoBBvhRZ8EkJk3Bo99aZWRH1UJGT5n8BdLcgenu2QDyMUZY1j5EdDaqF7RoyE7K/N&lt;/CipherValue&gt;
    &lt;/CipherData&gt;
  &lt;/EncryptedData&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>