from Crypto.PublicKey import RSA
private = RSA.generate(1024, os.urandom)
Now, how do I export or import keys? Everything is there, except for these two functions!
private.exportKey()
private.publickey.exportKey()
Preferably in -armor format :)
Any ideas?
Thanks to everyone. It turned out that Ubuntu was installing an old version of PyCrypto, and I had to get 2.3 from their site.
source
share