I wanted to write a simple RSA encryption program using Python but I'm having an issue decrypting the data that I have already encrypted. Below is the line where it gets hung up and says Overflow error 'Result to Large':
for item in Encryptor:
Decryptor.insert(len(Decryptor), long(math.fmod(pow(item, 2011), 3127)))
The item value is usually greater than 1000. Is there anything besides long that I can use to store this gigantic value?
Thanks,
Tommy

New Topic/Question
Reply




MultiQuote



|