Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

cryptography

50.0.2ActivePythie’s Index: 93

cryptography is a package which provides cryptographic recipes and primitives to Python developers.

Actively maintained. Last release 2 months ago, commits in 26 of the last 26 weeks. A safe choice.

Security & Auth
$pip install cryptography
pyca/cryptographyDocsPyPI
pyca/cryptography ================= .. image:: https://img.shields.io/pypi/v/cryptography.svg :target: https://pypi.org/project/cryptography/ :alt: Latest Version .. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest :target: https://cryptography.io :alt: Latest Docs .. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg :target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain ``cryptography`` is a package which provides cryptographic recipes and primitives to Python developers. Our goal is for it to be your "cryptographic standard library". It supports Python 3.9+ and PyPy3 7.3.11+. ``cryptography`` includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, message digests, and key derivation functions. For example, to encrypt something with ``cryptography``'s high level symmetric encryption recipe: .. code-block:: pycon >>> from cryptography.fernet import Fernet >>> # Put this somewhere safe! >>> key = Fernet.generate_key() >>> f = Fernet(key) >>> token = f.encrypt(b"A really secret message. Not for prying eyes.") >>> token b'...' >>> f.decrypt(token) b'A really secret message. Not for prying eyes.' You can find more information in the `documentation`_. You can install ``cryptography`` with: .. code-block:: console $ pip install cryptography For full details see `the installation documentation`_. Discussion ~~~~~~~~~~ If you run into bugs, you can file them in our `issue tracker`_. We maintain a `cryptography-dev`_ mailing list for development discussion. You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get involved. Security ~~~~~~~~ Need to report a security issue? Please consult our `security reporting`_ documentation. .. _`documentation`: https://cryptography.io/ .. _`the installation documentation`: https://cryptography.io/en/latest/installation/ .. _`issue tracker`: https://github.com/pyca/cryptography/issues .. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev .. _`security reporting`: https://cryptography.io/en/latest/security/

Popularity

Downloads / month
1.4B
GitHub stars
7.9K
Downloads, last 7 days
305.5M-3%
Stars, last 7 days
–
Direct dependents
13K
All dependents
88.2K

Pythie’s Index

How it works
93

Healthy

Maintenance, out of 100

  • Recent release

    last release 59 days ago

  • Commit activity

    26/26 weeks with commits

  • Release cadence

    11 releases in 12 months

  • Issues & PRs handled

    65% closed in the past year

  • Contributor spread

    18 authors in last 100 commits

  • OpenSSF Scorecard

    8.3/10

Commits, last 26 weeks989

Releases

Latest
50.0.2
Released
Sep 30, 2026
Releases, 12 months
11
First release
Jan 8, 2014

Compatibility

Requires Python
!=3.9.0,!=3.9.1,>=3.9
Tested on
3.9 · 3.10 · 3.11 · 3.12 · 3.13 · 3.14 · 3.15
License
Apache-2.0 OR BSD-3-Clause (Permissive)

Keywords

pythoncryptography

Alternatives

Use instead of cryptography: tools that do the same job, closest first.

Compare with pycrypto →Compare with pycryptodome →Compare with fernet →Compare all 4 →

  • pycrypto2.6.1InactivePythie’s Index: 19

    Cryptographic modules for Python.

    Security & Auth–9.8M/moReleased Jun 20, 2014
  • pycryptodome4.6.0ActivePythie’s Index: 80

    Self-contained cryptographic library for Python, classical and post-quantum

    Security & Auth3.3K86.9M/moReleased Nov 22, 2026
  • fernet1.0.1InactivePythie’s Index: 13

    A simple python fernet implementation

    Security & Auth15306.6K/moReleased Sep 18, 2016
  • oscrypto1.3.0MaintainedPythie’s Index: 17

    TLS (SSL) sockets, key generation, encryption, decryption, signing, verification and KDFs using the OS crypto libraries. Does not require a compiler, and relies on the OS for patching. Works on Windows, OS X and Linux/BSD.

    Security & Auth34618.5M/moReleased Mar 18, 2022
  • tink1.16.1ActivePythie’s Index: 86

    A multi-language, cross-platform library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.

    Security & AuthCloud SDKs & Services802.6M/moReleased Aug 13, 2026
  • M2Crypto0.51.0ActivePythie’s Index: 82

    A Python crypto and SSL toolkit

    Security & AuthPerformance & Low-level–323.6K/moReleased Oct 12, 2026

Works well with

Use together with cryptography: extensions, drivers, servers and companion tools.

  • pyOpenSSLPythie’s Index: 83Python wrapper module around the OpenSSL library183.5M downloads/mo
  • python-josePythie’s Index: 23JOSE implementation in Python30.9M downloads/mo
  • certbotPythie’s Index: 90ACME client1.4M downloads/mo
  • msoffcrypto-toolPythie’s Index: 44Python tool and library for decrypting and encrypting MS Office files using a password or other keys20.1M downloads/mo
  • service-identityPythie’s Index: 56Service identity verification for pyOpenSSL & cryptography.19M downloads/mo
  • pyHankoPythie’s Index: 88Tools for stamping and signing PDF files6M downloads/mo