Seeking pure Python AES/RSA library compatible with OpenSSL

novosibirsk at gmail.com novosibirsk at gmail.com
Thu Jan 22 05:06:53 EST 2009


On Jan 22, 1:42 am, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> novosibi... at gmail.com writes:
> > 0. In pure Python, encrypt some data using AES.
> > 1. In pure Python, encrypt the key used in 0 with RSA, given a private
> > key in PEM format.
> > Question --- is there a library I can use for steps 0 and 1?
>
> I know there are some AES libs around, try google.  The libs
> will be quite slow.
>
> I think tlslite can do PEM decoding and PKCS1.5 encryption
> (http://trevp.net/tlslite).

Yes, tlslite is the only pure Python library I found that deals with
PEM.  The problem is OpenSSL doesn't want to decrypt data encrypted by
tlslite (RSA_public_decrypt(), RSA_PKCS1_PADDING).



More information about the Python-list mailing list