pycryptodome

A self-contained cryptographic library for Python

https://github.com/legrandin/pycryptodome

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    4 of 158 committers (2.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.4%) to scientific vocabulary

Keywords

cryptography python security

Keywords from Contributors

templates closember shellcode distributed bruteforce pallets views apps jinja fuzzing
Last synced: 6 months ago · JSON representation

Repository

A self-contained cryptographic library for Python

Basic Info
Statistics
  • Stars: 3,051
  • Watchers: 65
  • Forks: 536
  • Open Issues: 73
  • Releases: 37
Topics
cryptography python security
Created almost 12 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License Authors

README.rst

.. image:: https://github.com/Legrandin/pycryptodome/workflows/Integration%20test/badge.svg
   :target: https://github.com/Legrandin/pycryptodome/actions

.. image:: https://badge.fury.io/py/pycryptodome.svg
   :target: https://pypi.org/project/pycryptodome

.. image:: https://badge.fury.io/py/pycryptodomex.svg
   :target: https://pypi.org/project/pycryptodomex

PyCryptodome
============

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

It supports Python 2.7, Python 3.7 and newer, and PyPy.

The installation procedure depends on the package you want the library to be in.
PyCryptodome can be used as:

#. **an almost drop-in replacement for the old PyCrypto library**.
   You install it with::

       pip install pycryptodome

   In this case, all modules are installed under the ``Crypto`` package.

   One must avoid having both PyCrypto and PyCryptodome installed
   at the same time, as they will interfere with each other.

   This option is therefore recommended only when you are sure that
   the whole application is deployed in a ``virtualenv``.

#. **a library independent of the old PyCrypto**.
   You install it with::

       pip install pycryptodomex

   In this case, all modules are installed under the ``Cryptodome`` package.
   PyCrypto and PyCryptodome can coexist.

For faster public key operations in Unix, you should install `GMP`_ in your system.

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, KW, KWP)
* Hybrid Public Key Encryption (HPKE)
* Accelerated AES on Intel platforms via AES-NI
* First class support for PyPy
* Elliptic curves cryptography (NIST P-curves; Ed25519, Ed448, Curve25519, Curve448)
* 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 hash algorithms (FIPS 202) and derived functions (NIST SP-800 185):

  - SHAKE128 and SHA256 XOFs
  - cSHAKE128 and cSHAKE256 XOFs
  - KMAC128 and KMAC256
  - TupleHash128 and TupleHash256

* KangarooTwelve, TurboSHAKE128, and TurboSHAKE256 XOFs
* Truncated hash algorithms SHA-512/224 and SHA-512/256 (FIPS 180-4)
* BLAKE2b and BLAKE2s hash algorithms
* Salsa20 and ChaCha20/XChaCha20 stream ciphers
* Poly1305 MAC
* ChaCha20-Poly1305 and XChaCha20-Poly1305 authenticated ciphers
* scrypt, bcrypt, HKDF, and NIST SP 800 108r1 Counter Mode key derivation functions
* Deterministic (EC)DSA and EdDSA
* 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`_.

For security issues, please send an email to security@pycryptodome.org.

All the code can be downloaded from `GitHub`_.

.. _`homepage`: https://www.pycryptodome.org
.. _`GMP`: https://gmplib.org
.. _GitHub: https://github.com/Legrandin/pycryptodome

Owner

  • Name: Helder Eijs
  • Login: Legrandin
  • Kind: user
  • Location: Europe

GitHub Events

Total
  • Create event: 26
  • Release event: 4
  • Issues event: 51
  • Watch event: 263
  • Delete event: 27
  • Issue comment event: 55
  • Push event: 88
  • Pull request review event: 1
  • Pull request review comment event: 1
  • Pull request event: 27
  • Fork event: 57
Last Year
  • Create event: 26
  • Release event: 4
  • Issues event: 51
  • Watch event: 263
  • Delete event: 27
  • Issue comment event: 55
  • Push event: 88
  • Pull request review event: 1
  • Pull request review comment event: 1
  • Pull request event: 27
  • Fork event: 57

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 2,861
  • Total Committers: 158
  • Avg Commits per committer: 18.108
  • Development Distribution Score (DDS): 0.375
Past Year
  • Commits: 120
  • Committers: 10
  • Avg Commits per committer: 12.0
  • Development Distribution Score (DDS): 0.1
Top Committers
Name Email Commits
Helder Eijs h****s@g****m 1,787
Dwayne C. Litzenberger d****z@d****t 383
akuchling a****g@r****t 279
Legrandin g****o@h****m 104
Fabrizio Tarizzo f****o@f****g 21
Sebastian Ramacher s****v@r****t 17
Thorsten Behrens s****s@g****i 15
Sebastian Ramacher s****r@g****t 13
A.M. Kuchling a****k@a****a 12
jelaiw 1****w 11
z3p z****p@r****t 8
Michael Nix m****x@g****m 6
Hugo h****k 6
Richard Mitchell r****l@g****m 5
Stefano Rivera s****o@r****t 5
James j****n@u****u 5
moraes m****s@r****t 5
Lorenz Quack d****n@a****m 4
Michael Schaffner m****f@g****m 4
vil02 6****2 4
Frédéric Bertolus f****d@l****m 4
Greg Werbin g****n 4
Robey Pointer r****y@l****t 3
AlexanderUp a****0@y****u 3
oittaa 8****a 3
Mickaël Schoentgen m****n@n****m 2
amk a****k@r****t 2
jbontje j****e@r****t 2
André Lochotzke l****e 2
Anders Sundman a****s@4****g 2
and 128 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 161
  • Total pull requests: 116
  • Average time to close issues: 10 months
  • Average time to close pull requests: 7 months
  • Total issue authors: 145
  • Total pull request authors: 76
  • Average comments per issue: 2.85
  • Average comments per pull request: 1.34
  • Merged pull requests: 45
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 31
  • Pull requests: 29
  • Average time to close issues: 27 days
  • Average time to close pull requests: 2 months
  • Issue authors: 30
  • Pull request authors: 14
  • Average comments per issue: 0.9
  • Average comments per pull request: 0.24
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • kloczek (7)
  • Akuli (3)
  • bdrung (3)
  • mtelka (2)
  • kapilt (2)
  • MaJerle (2)
  • snarfed (2)
  • paulehoffman (2)
  • user3472g (2)
  • bastimeyer (2)
  • Morishima-Hodaka (1)
  • hugovk (1)
  • bannable (1)
  • pirrup (1)
  • paulwilson90 (1)
Pull Request Authors
  • vil02 (19)
  • jelaiw (7)
  • JamesTheAwesomeDude (4)
  • xambroz (3)
  • hauntsaninja (2)
  • kuolemaaa (2)
  • schenker (2)
  • kingofpayne (2)
  • muelljac99 (2)
  • cdce8p (2)
  • Prateek2000 (2)
  • crass (2)
  • solney (2)
  • arun-y99 (2)
  • rettichschnidi (2)
Top Labels
Issue Labels
fix_available (25) bug (17) enhancement (11) feature request (8) waiting_for_feedback (2) build (1) documentation (1) duplicate (1)
Pull Request Labels
unsupported platform (2) bug (2) fix_available (2) enhancement (1) help wanted (1)

Packages

  • Total packages: 8
  • Total downloads:
    • pypi 96,469,639 last-month
  • Total docker downloads: 3,997,396,553
  • Total dependent packages: 2,150
    (may contain duplicates)
  • Total dependent repositories: 24,412
    (may contain duplicates)
  • Total versions: 253
  • Total maintainers: 2
  • Total advisories: 2
pypi.org: pycryptodome

Cryptographic library for Python

  • Versions: 58
  • Dependent Packages: 1,707
  • Dependent Repositories: 18,279
  • Downloads: 54,226,874 Last month
  • Docker Downloads: 1,898,205,436
Rankings
Dependent packages count: 0.0%
Docker downloads count: 0.0%
Downloads: 0.0%
Dependent repos count: 0.1%
Average: 0.9%
Stargazers count: 2.0%
Forks count: 3.1%
Maintainers (1)
Last synced: 6 months ago
pypi.org: pycryptodomex

Cryptographic library for Python

  • Versions: 51
  • Dependent Packages: 404
  • Dependent Repositories: 6,085
  • Downloads: 42,242,729 Last month
  • Docker Downloads: 2,099,191,117
Rankings
Docker downloads count: 0.0%
Downloads: 0.0%
Dependent packages count: 0.1%
Dependent repos count: 0.1%
Average: 0.9%
Stargazers count: 2.0%
Forks count: 3.2%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: pycryptodome
  • Versions: 22
  • Dependent Packages: 21
  • Dependent Repositories: 23
Rankings
Dependent packages count: 3.1%
Average: 6.7%
Dependent repos count: 7.5%
Forks count: 8.0%
Stargazers count: 8.4%
Last synced: 6 months ago
proxy.golang.org: github.com/legrandin/pycryptodome
  • Versions: 58
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 7.0%
Average: 8.2%
Dependent repos count: 9.3%
Last synced: 6 months ago
conda-forge.org: pycryptodomex

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

  • Versions: 31
  • Dependent Packages: 14
  • Dependent Repositories: 1
Rankings
Dependent packages count: 4.5%
Forks count: 8.0%
Stargazers count: 8.4%
Average: 11.2%
Dependent repos count: 24.1%
Last synced: 6 months ago
anaconda.org: pycryptodome

PyCryptodome is a self-contained Python package of low-level cryptographic primitives. 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.

  • Versions: 12
  • Dependent Packages: 1
  • Dependent Repositories: 23
Rankings
Forks count: 16.0%
Stargazers count: 16.7%
Average: 21.2%
Dependent packages count: 21.5%
Dependent repos count: 30.8%
Last synced: 6 months ago
anaconda.org: pycryptodomex

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

  • Versions: 19
  • Dependent Packages: 3
  • Dependent Repositories: 1
Rankings
Forks count: 16.0%
Stargazers count: 16.7%
Dependent packages count: 21.5%
Average: 26.3%
Dependent repos count: 51.0%
Last synced: 6 months ago
pypi.org: cryptoconf
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 36 Last month
Rankings
Dependent packages count: 9.3%
Average: 38.7%
Dependent repos count: 68.2%
Maintainers (1)
Last synced: about 1 year ago

Dependencies

.github/workflows/codeql-analysis.yml actions
  • actions/checkout v3 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/autobuild v2 composite
  • github/codeql-action/init v2 composite
.github/workflows/integration.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • ilammy/msvc-dev-cmd f456b805b3f63911738cb71d4f255e4e129c7e7a composite
.github/workflows/wheels.yml actions
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • ilammy/msvc-dev-cmd v1 composite
  • pypa/cibuildwheel v2.11.2 composite
  • pypa/cibuildwheel v1.12.0 composite
requirements-test.txt pypi
  • pycryptodome-test-vectors ==1.0.10 test
Doc/requirements.txt pypi
  • sphinx ==7.1.0
pyproject.toml pypi
setup.py pypi