title: How to implement RSA Encryption in C?
body: <p>I'm trying to use asymmetric encryption in a C program, to <strong>encrypt strings</strong>.</p>
  <p>I chose to go with RSA, but <strong>if there's a less complicated yet secure way, do tell me</strong>.</p>
  <p>OpenSSL is one library I've looked at and found  no documentation on implementing it in C code. (I may just have been <em>unlucky</em>, I've been looking for many days)</p>
  <p>No luck on YouTube/Google either...</p>
  <p>Please point me to a detailed source of information on how how to do this...</p>
  <p>I understand both C and the fundamental concepts of RSA pretty well, but <strong>I have no idea how to:</strong></p>
  <ol>
  <li>Generate the large primes needed to generate the keys.</li>
  <li>Fix e = 65537 .</li>
  <li>Generate the public / private keys in an alphanumeric format (they are actually numbers, arent they ?) .</li>
  <li>Seamlessly combine (e,n) in the public key and (d,n) in the private key in the way tools like OpenSSL seem to do (in an alphanumeric string) .</li>
  </ol>