title: Large Number Storage
body: <p>I am trying to implement the <a href="http://en.wikipedia.org/wiki/RSA_%28cryptosystem%29#Key_generation" rel="nofollow">RSA Key Generation algorithm</a> for a school project. I am having trouble with the encryption stage of the algorithm. It requires me to raise a user inputted integers to the power of a random number (random number has a criteria) and these random numbers are usually 2 or 3 digits long; eg. <code>23^239 = d</code>. In most situations, the 'd' value is 100s of digits long and I cannot find anything to store it as. I have tried <code>long long</code> but the return value is always negative.</p>
  
  <p>How can I generate and store very large numbers?</p>