Skip to main content
https://travis-ci.org/Legrandin/pycryptodome.svg?branch=master https://ci.appveyor.com/api/projects/status/mbxyqdodw9ylfib9/branch/master?svg=true

PyCryptodome

PyCryptodome is a self-contained Python package of low-level cryptographic primitives.

It supports Python 2.4 or newer, all Python 3 versions and PyPy.

You can install it with a simple:

pip install pycryptodome

For faster public key operations, you should have GMP installed in your system (except on Windows, as the wheel on PyPi already comes with the equivalent MPIR library).

PyCryptodome is a fork of PyCrypto. It brings the following enhancements with respect to the last official version of PyCrypto (2.6.1):

  • Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)

  • Accelerated AES on Intel platforms via AES-NI

  • First class support for PyPy

  • Elliptic curves cryptography (NIST P-256 curve only)

  • Better and more compact API (nonce and iv attributes for ciphers, automatic generation of random nonces and IVs, simplified CTR cipher mode, and more)

  • SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms

  • Salsa20 and ChaCha20 stream ciphers

  • scrypt and HKDF

  • Deterministic (EC)DSA

  • Password-protected PKCS#8 key containers

  • Shamir’s Secret Sharing scheme

  • Random numbers get sourced directly from the OS (and not from a CSPRNG in userspace)

  • Simplified install process, including better support for Windows

  • Cleaner RSA and DSA key generation (largely based on FIPS 186-4)

  • Major clean ups and simplification of the code base

PyCryptodome is not a wrapper to a separate C library like OpenSSL. To the largest possible extent, algorithms are implemented in pure Python. Only the pieces that are extremely critical to performance (e.g. block ciphers) are implemented as C extensions.

For more information, see the homepage.

All the code can be downloaded from GitHub.

News

  • 7 Feb 2016 (NEW). Release 3.4.

  • Nov 2015. Release 3.3.1.

  • 29 Oct 2015. Release 3.3.

  • 9 Sep 2015. Minor release 3.2.1.

  • 6 Sep 2015. Release 3.2.

  • 15 Mar 2015. Release 3.1.

  • 24 Jun 2014. Release 3.0.

Metadata

Release files for pycryptodome 3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycryptodome 3.4
File Size Uploaded
pycryptodome-3.4.tar.gz 6.5 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pycryptodome 3.4
File
pycryptodome-3.4-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
pycryptodome-3.4-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
pycryptodome-3.4-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details
pycryptodome-3.4-cp34-cp34m-win32.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-32 Details
pycryptodome-3.4-cp33-none-win_amd64.whl CPython 3.3 none Windows x86-64 Details
pycryptodome-3.4-cp33-none-win32.whl CPython 3.3 none Windows x86-32 Details
pycryptodome-3.4-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
pycryptodome-3.4-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details

Total release size: 66.4 MB

Release files / pycryptodome-3.4.tar.gz

Download URL pycryptodome-3.4.tar.gz
Size 6.5 MB
Tags Source
SHA-256 checksum
How to use checksums
26bcf9d3a792d0bacbad29d9ca465f48553d53e034b6902120d414a884cf8459
BLAKE2b-256 checksum
How to use checksums
78a93ad761efa8c947d06db18a4a7cfc7773806cdee48a37187b022647313d68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycryptodome-3.4-cp35-cp35m-win_amd64.whl

Download URL pycryptodome-3.4-cp35-cp35m-win_amd64.whl
Size 7.6 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
f0eef4110e076241f605f3549e3f8c94292fdfa68c975e7093206ff5f856a448
BLAKE2b-256 checksum
How to use checksums
3b7670439c75cccf8bd385e52cbdd0554f7aba4794882a7a3a9ba7ce07f15143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycryptodome-3.4-cp35-cp35m-win32.whl

Download URL pycryptodome-3.4-cp35-cp35m-win32.whl
Size 7.5 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
7035885d1d3d0999a2abbfb155ecdf4e7b808ffd337170b60b3054fe5fb19666
BLAKE2b-256 checksum
How to use checksums
eac6b59421066913ec4ff16f99846a06e6411ce1a72fb604847f19c1e42d49f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycryptodome-3.4-cp34-cp34m-win_amd64.whl

Download URL pycryptodome-3.4-cp34-cp34m-win_amd64.whl
Size 7.5 MB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
9384793132ad2fc838dd04871530d2caddb371067bc98d7bb154427aaf1f0709
BLAKE2b-256 checksum
How to use checksums
3fb1a1f4b80ac53b255c9f7842f0697e8eb387b23045aabf23b1a8c216e9bcdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycryptodome-3.4-cp34-cp34m-win32.whl

Download URL pycryptodome-3.4-cp34-cp34m-win32.whl
Size 7.5 MB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
83ecddf3b301fe94bce6a54d09c82d893043d19d319b2014b832cf7f732cb476
BLAKE2b-256 checksum
How to use checksums
06aaaa247836c6c55b0fa3699695c908f222dc4279d155d7ee48a9e38cfa25dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycryptodome-3.4-cp33-none-win_amd64.whl

Download URL pycryptodome-3.4-cp33-none-win_amd64.whl
Size 7.5 MB
Tags CPython 3.3 Windows x86-64
SHA-256 checksum
How to use checksums
ae4bd518bd4317962be0154450427e16e6903a630d52647fef6558b34e4a4ac9
BLAKE2b-256 checksum
How to use checksums
dd0bc2094b4467c02b9fabd623fc4961a957440c86169c92de94accc5593d6a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycryptodome-3.4-cp33-none-win32.whl

Download URL pycryptodome-3.4-cp33-none-win32.whl
Size 7.5 MB
Tags CPython 3.3 Windows x86-32
SHA-256 checksum
How to use checksums
3f578d6f825c60517294251b3b6d0181fb634eb2fafa360a0be59be1174d22b8
BLAKE2b-256 checksum
How to use checksums
00a9603e4f8d50363a3b773328aa77c55abcda08db573f03b3c5a5ad8751ab98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycryptodome-3.4-cp27-cp27m-win_amd64.whl

Download URL pycryptodome-3.4-cp27-cp27m-win_amd64.whl
Size 7.5 MB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
be7d54b78d8956f1de2727306c0a9a81dcd54a46ec8e333797410cfada30d6c3
BLAKE2b-256 checksum
How to use checksums
e1afdd857ceea015e429944e89679e119ff8de92708e6c50ef3039fd476dd060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycryptodome-3.4-cp27-cp27m-win32.whl

Download URL pycryptodome-3.4-cp27-cp27m-win32.whl
Size 7.4 MB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
226465e03d9d9e62ef5a5fa1fb6513689e233ce38f371951c082780439e46148
BLAKE2b-256 checksum
How to use checksums
551550481185ab491802347009de40a56602251d7b43899149afccc30890d316
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

3.17

33 release files

3.9.8

35 release files

3.9.7

30 release files

3.9.4

32 release files

3.9.3

32 release files

3.9.2

32 release files

3.9.0

28 release files

3.8.2

28 release files

3.8.0

28 release files

3.7.3

28 release files

3.7.2

28 release files

3.7.1

28 release files

3.7.0

28 release files

3.6.6

30 release files

3.6.5

30 release files

3.6.4

30 release files

3.6.3

27 release files

3.6.1

27 release files

3.4.8

23 release files

3.4.7

11 release files

3.4.6

11 release files

3.4.3

11 release files

This release

3.4 This release

9 release files

3.3.1

9 release files

3.3

9 release files

3.2.1

9 release files

3.2

1 release file

3.1

3 release files

3.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page