simple rsa from javascript to python
Nobody
nobody at nowhere.com
Tue Apr 3 01:12:44 EDT 2012
On Mon, 02 Apr 2012 16:19:05 -0700, Astan Chee wrote:
> and I'm trying to convert this into python and I'm rather stuck with
> pycrypto as there is no example on how to make the public key with a mod
> and exponent (or I've probably missed it).
from Crypto.PublicKey import RSA
mod = long("B99808B881F3D8A...", 16) # truncated for clarity
exp = long("010001", 16)
rsa = RSA.construct((mod, exp))
More information about the Python-list
mailing list