Skip to content


PyCrypto binaries and how to compile (on Windows)

PyCrypto is a library for Python 2.x/3.x which provides many cryptographic functions such as AES, etc. However, due to export restrictions they don’t provide binaries, and they seem to be quite a pain to compile.

If you’re wondering how to compile it, I found this guide which seems detailed enough: http://yorickdowne.wordpress.com/2010/12/22/compiling-pycrypto-on-win7-64/.

On the above-mentioned page, they also provide an old build (version 2.3.1). If you need a more recent version, this page http://www.voidspace.org.uk/python/modules.shtml#pycrypto has binaries of PyCrypto 2.6 (but also 2.3 and even 2.1), compiled for specific version of Python (2.6, 2.7, 3.2 and 3.3 for PyCrypto 2.6, 24 to 2.7 for PyCrypto 2.1 and 2.3).

Just in case, I mirrored 2 of those here:
pycrypto-2.3.1.win7x64-py2.7×64.7z (PyCrypto 2.3.1 for Ptyhon 2.7 from the tutorial)
pycrypto-2.6.win-amd64-py3.3.exe (PyCrypto2.6 for Ptyhon 3.6 64 bits from the second link with many different builds)
Note that I only tested pycrypto-2.3.1.win7x64-py2.7×64.7z, but the others were mentioned in a cryptography class so probably quite a few people used them successfully 😉

Posted in cryptography, programming.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA