Calculating very large exponents in python
<p>Dear All, 
Currently i am simulating my cryptographic scheme to test it. I have developed the code but i am stuck at one point. </p>

<p>I am trying to take: <code>g**x</code> 
where </p>

<pre><code>g = 256 bit number
x = 256 bit number
</code></pre>

<p>Python hangs at this point, i have read alot of forums, threads etcc but only come to the conclusion that python hangs, as its hard for it to process such large numbers.</p>

<p>any idea how can it be done? any two line piece of code, any library, anything that can be done.(ALSO PLEASE I AM A NEW PYTHON USER AND THIS IS FIRST TIME I DID PROGRAMMING IN IT, SO NO COMPLEX METHODS ...HOPE YOU UNDERSTAND :s)</p>
