Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AES encryption library compatible with Python 2.7 for Windows

Any recommendations on an AES encryption library that's compatible with Python 2.7 for Windows?

In the past we've used m2crypto with Python 2.6, but there's no version of m2crypto for Python 2.7 and our attempts to build a version from source have failed.

Thank you, Malcolm

like image 246
Malcolm Avatar asked May 27 '26 09:05

Malcolm


2 Answers

Actually, the M2Crypto package supports Python 2.7 just fine — I have been using it in a cryptography-heavy application with no problem. I suppose the problem here is that Windows does not come with a compiler, so you cannot easily install the .tar.gz off of PyPI? Or are you getting an error when you try to compile it?

I would suggest that the best response to an error would be posting it to Stack Overflow so that we could fix it, instead of asking for alternative to what is — so far as I can tell — the premier cryptography library for Python.

Update: I have now successfully built M2Crypto for Windows under Python 2.7, so I can personally confirm that it works fine with Python 2.7 on all major platforms.

like image 74
Brandon Rhodes Avatar answered May 30 '26 08:05

Brandon Rhodes


Have you looked at the PyCrypto library?

http://www.dlitz.net/software/pycrypto/

It should be compatible with Python 2.7

You might also take a look at pycryptopp, a wrapper around the Crypto++ library.

http://tahoe-lafs.org/trac/pycryptopp

like image 31
Paul McMillan Avatar answered May 30 '26 09:05

Paul McMillan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!