title: Get the public key from RSACryptoServiceProvider?
body: <p>I'm trying to use public key encryption for communication with a client and server. The server is supposed to generate a 1024-bit public key and send it to the client, where the client will use that key to send encrypted data back to the server. So far, I've initialized the RSACryptoServiceProvider with this:</p>
  
  <pre><code>RSACryptoServiceProvider rsaEncryption = new RSACryptoServiceProvider(1024);
  </code></pre>
  
  <p>Now, I'm aware that I can use <code>ExportParameters</code> to get the exponent and modulus from the RSACryptoServiceProvider. However, I'm wondering, how can I use this data to send a public key back to the client (which would also be using an <code>RSACryptoServiceProvider</code>), and how can the client use this data to encrypt something to send back to me? 
  Or am I doing this completely wrong?</p>