It can be used as a Python library as well as on the commandline.
It supports encryption and decryption, signing and verifying signatures, and key generation according to PKCS1 version 1.5.
So youll have to convert them to normal str objects. Released: Project description Pure Python RSA implementation Python-RSA is a pure-Python RSA implementation. I am trying to write RSA encryption and decryption in python without Crypto library and in short I have generated public(e,N) and private(d,N) keys to exchange with message and I don't know how to that. Your items in secretkeys are bytes, which are not JSON serializable.