Cryptographic library for Python
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pycryptodome-3.4-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0eef4110e076241f605f3549e3f8c94292fdfa68c975e7093206ff5f856a448 |
|
MD5 | 207486885b08e068c3674bd7bfeead0f |
|
BLAKE2b-256 | 3b7670439c75cccf8bd385e52cbdd0554f7aba4794882a7a3a9ba7ce07f15143 |
Hashes for pycryptodome-3.4-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7035885d1d3d0999a2abbfb155ecdf4e7b808ffd337170b60b3054fe5fb19666 |
|
MD5 | 20eac45634e7a47a6d495e99cb690ef6 |
|
BLAKE2b-256 | eac6b59421066913ec4ff16f99846a06e6411ce1a72fb604847f19c1e42d49f3 |
Hashes for pycryptodome-3.4-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9384793132ad2fc838dd04871530d2caddb371067bc98d7bb154427aaf1f0709 |
|
MD5 | 0a11eaf325818425c0fb113f9f69bc39 |
|
BLAKE2b-256 | 3fb1a1f4b80ac53b255c9f7842f0697e8eb387b23045aabf23b1a8c216e9bcdf |
Hashes for pycryptodome-3.4-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ecddf3b301fe94bce6a54d09c82d893043d19d319b2014b832cf7f732cb476 |
|
MD5 | 078491cfd5dd81aea1a2b1b4eb35ce60 |
|
BLAKE2b-256 | 06aaaa247836c6c55b0fa3699695c908f222dc4279d155d7ee48a9e38cfa25dc |
Hashes for pycryptodome-3.4-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4bd518bd4317962be0154450427e16e6903a630d52647fef6558b34e4a4ac9 |
|
MD5 | 2784fd073ff9c6f699fd4349eb134453 |
|
BLAKE2b-256 | dd0bc2094b4467c02b9fabd623fc4961a957440c86169c92de94accc5593d6a6 |
Hashes for pycryptodome-3.4-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f578d6f825c60517294251b3b6d0181fb634eb2fafa360a0be59be1174d22b8 |
|
MD5 | 36ec3a3358e28f54e24a72763b5e4b93 |
|
BLAKE2b-256 | 00a9603e4f8d50363a3b773328aa77c55abcda08db573f03b3c5a5ad8751ab98 |
Hashes for pycryptodome-3.4-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be7d54b78d8956f1de2727306c0a9a81dcd54a46ec8e333797410cfada30d6c3 |
|
MD5 | bee2f4df01d5ed58fe616c1a0e84e736 |
|
BLAKE2b-256 | e1afdd857ceea015e429944e89679e119ff8de92708e6c50ef3039fd476dd060 |
Hashes for pycryptodome-3.4-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 226465e03d9d9e62ef5a5fa1fb6513689e233ce38f371951c082780439e46148 |
|
MD5 | 9f75524b88eac67050ebca25e0fa2da8 |
|
BLAKE2b-256 | 551550481185ab491802347009de40a56602251d7b43899149afccc30890d316 |