from Crypto.PublicKey import RSA
private = RSA.generate(1024, os.urandom)
Now how do I export or import keys? Everything is there except these 2 functions!
private.exportKey()
private.publickey.exportKey()
Preferably in –armor format 🙂
Any ideas?
Thanks all. Turned out that Ubuntu installs an old version of PyCrypto and I had to fetch 2.3 from their website.
If you are using PyCryto, then I see that PyCryto 2.2 has that functionality. Otherwise you will find the patch here useful.