Skip to main content

Cryptographic library for Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycryptodome-3.4.tar.gz (6.5 MB view details)

Uploaded Source

Built Distributions

pycryptodome-3.4-cp35-cp35m-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.5mWindows x86-64

pycryptodome-3.4-cp35-cp35m-win32.whl (7.5 MB view details)

Uploaded CPython 3.5mWindows x86

pycryptodome-3.4-cp34-cp34m-win_amd64.whl (7.5 MB view details)

Uploaded CPython 3.4mWindows x86-64

pycryptodome-3.4-cp34-cp34m-win32.whl (7.5 MB view details)

Uploaded CPython 3.4mWindows x86

pycryptodome-3.4-cp33-none-win_amd64.whl (7.5 MB view details)

Uploaded CPython 3.3Windows x86-64

pycryptodome-3.4-cp33-none-win32.whl (7.5 MB view details)

Uploaded CPython 3.3Windows x86

pycryptodome-3.4-cp27-cp27m-win_amd64.whl (7.5 MB view details)

Uploaded CPython 2.7mWindows x86-64

pycryptodome-3.4-cp27-cp27m-win32.whl (7.4 MB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file pycryptodome-3.4.tar.gz.

File metadata

  • Download URL: pycryptodome-3.4.tar.gz
  • Upload date:
  • Size: 6.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycryptodome-3.4.tar.gz
Algorithm Hash digest
SHA256 26bcf9d3a792d0bacbad29d9ca465f48553d53e034b6902120d414a884cf8459
MD5 c626ba69eff9190d152537f93d488d4b
BLAKE2b-256 78a93ad761efa8c947d06db18a4a7cfc7773806cdee48a37187b022647313d68

See more details on using hashes here.

File details

Details for the file pycryptodome-3.4-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for pycryptodome-3.4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 f0eef4110e076241f605f3549e3f8c94292fdfa68c975e7093206ff5f856a448
MD5 207486885b08e068c3674bd7bfeead0f
BLAKE2b-256 3b7670439c75cccf8bd385e52cbdd0554f7aba4794882a7a3a9ba7ce07f15143

See more details on using hashes here.

File details

Details for the file pycryptodome-3.4-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for pycryptodome-3.4-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 7035885d1d3d0999a2abbfb155ecdf4e7b808ffd337170b60b3054fe5fb19666
MD5 20eac45634e7a47a6d495e99cb690ef6
BLAKE2b-256 eac6b59421066913ec4ff16f99846a06e6411ce1a72fb604847f19c1e42d49f3

See more details on using hashes here.

File details

Details for the file pycryptodome-3.4-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for pycryptodome-3.4-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 9384793132ad2fc838dd04871530d2caddb371067bc98d7bb154427aaf1f0709
MD5 0a11eaf325818425c0fb113f9f69bc39
BLAKE2b-256 3fb1a1f4b80ac53b255c9f7842f0697e8eb387b23045aabf23b1a8c216e9bcdf

See more details on using hashes here.

File details

Details for the file pycryptodome-3.4-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for pycryptodome-3.4-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 83ecddf3b301fe94bce6a54d09c82d893043d19d319b2014b832cf7f732cb476
MD5 078491cfd5dd81aea1a2b1b4eb35ce60
BLAKE2b-256 06aaaa247836c6c55b0fa3699695c908f222dc4279d155d7ee48a9e38cfa25dc

See more details on using hashes here.

File details

Details for the file pycryptodome-3.4-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for pycryptodome-3.4-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 ae4bd518bd4317962be0154450427e16e6903a630d52647fef6558b34e4a4ac9
MD5 2784fd073ff9c6f699fd4349eb134453
BLAKE2b-256 dd0bc2094b4467c02b9fabd623fc4961a957440c86169c92de94accc5593d6a6

See more details on using hashes here.

File details

Details for the file pycryptodome-3.4-cp33-none-win32.whl.

File metadata

File hashes

Hashes for pycryptodome-3.4-cp33-none-win32.whl
Algorithm Hash digest
SHA256 3f578d6f825c60517294251b3b6d0181fb634eb2fafa360a0be59be1174d22b8
MD5 36ec3a3358e28f54e24a72763b5e4b93
BLAKE2b-256 00a9603e4f8d50363a3b773328aa77c55abcda08db573f03b3c5a5ad8751ab98

See more details on using hashes here.

File details

Details for the file pycryptodome-3.4-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for pycryptodome-3.4-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 be7d54b78d8956f1de2727306c0a9a81dcd54a46ec8e333797410cfada30d6c3
MD5 bee2f4df01d5ed58fe616c1a0e84e736
BLAKE2b-256 e1afdd857ceea015e429944e89679e119ff8de92708e6c50ef3039fd476dd060

See more details on using hashes here.

File details

Details for the file pycryptodome-3.4-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for pycryptodome-3.4-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 226465e03d9d9e62ef5a5fa1fb6513689e233ce38f371951c082780439e46148
MD5 9f75524b88eac67050ebca25e0fa2da8
BLAKE2b-256 551550481185ab491802347009de40a56602251d7b43899149afccc30890d316

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page