title: Simple rsa encryption/decryption in .NET?
body: <p>I'd like to generate pair of keys and just type something like: </p>
  
  <pre><code>Rsa.Decrypt(data, privateKey); 
  Rsa.Encrypt(data, publicKey);
  </code></pre>
  
  <p>Is there any easy way to do this? I know there is something like RsaCryptoServiceProvider but it needs XML to create proper object. I'd like to store private/public key as simple string (not xml) which i'll put in web.config in:</p>
  
  <pre><code>&lt;appSettings&gt;
      &lt;add key="MyPublicKey" value"...."/&gt;
      &lt;add key="MyrivateKey" value"...."/&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>And later i'll encrypt web.config so everything will be safe (IIS will deal with it). Is it possible to do that in that way?</p>