title: How to store/retrieve RSA public/private key
body: <p>I want to use RSA public key encryption. What is the best way to store or retrieve private and public keys? Is XML a good idea here?</p>
  
  <p>How to get the keys?</p>
  
  <pre><code>RSAParameters privateKey = RSA.ExportParameters(true);
  RSAParameters publicKey = RSA.ExportParameters(false);
  </code></pre>
  
  <p>Because RSAParameters have the following members: D, DP, DQ, Exponent, InverseQ, Modulus, P, Q</p>
  
  <p>Which one is the key?</p>