Calculating very large exponents in python

Fahad Ahmad miraclesoul at hotmail.com
Sun Mar 7 19:55:24 CET 2010


Dear All,

i am writing my crytographic scheme in python, i am just a new user to it. 
I have written the complete code, the only point i am stuck it is that i am using 256 exponentiation which is normal in crytography but python just hangs on it.

g**x  [where both g and x are 256 bit numbers , in decimal they are around 77]

after reading several forums, i just come to know it can be done using numpy, i have installed python(x,y) has has both numpy and scipy installed but i am not able to make it happen.

any idea which library, module, or piece of code can solve this mystery :S

sorry for bad english

"People
come and go no one remembers them for life but it is the time spent
with them that become Sweet memories that are remembered for life 
hope I leave some memories behind " 

 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/201469229/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100307/b4958ccf/attachment.html>


More information about the Python-list mailing list