1
0
Fork 0
mirror of https://github.com/pyca/cryptography.git synced 2026-12-03 15:14:50 +00:00
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. https://cryptography.io
  • Python 66.3%
  • Rust 33.7%
Find a file
pyca-boringbot[bot] aaa284de8f
Bump downstream dependencies in CI (#16123)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2026-12-03 10:17:51 +00:00
.github Bump downstream dependencies in CI (#16123) 2026-12-03 10:17:51 +00:00
docs check traditional dsa private keys match their public key (#16008) 2026-12-01 08:34:00 -08:00
src Restore lenient base64 decoding for Fernet keys and tokens (#16116) 2026-12-02 10:34:48 -05:00
tests Restore lenient base64 decoding for Fernet keys and tokens (#16116) 2026-12-02 10:34:48 -05:00
vectors reopen main for development (#16115) 2026-12-02 06:18:02 -08:00
.gitattributes test py27 with windows container on azure (#4880) 2019-05-08 18:29:42 -04:00
.gitignore CHANGELOG: record new X.509 client verification APIs (#10615) 2024-03-21 01:15:24 +00:00
.readthedocs.yml Update Read the Docs config: ubuntu 26.04, Python 3.14, uv installs (#15160) 2026-07-05 13:02:02 -04:00
AGENTS.md make the admission to use nox only stronger (#14937) 2026-06-03 06:31:23 -06:00
Cargo.lock reopen main for development (#16115) 2026-12-02 06:18:02 -08:00
Cargo.toml reopen main for development (#16115) 2026-12-02 06:18:02 -08:00
CHANGELOG.rst reopen main for development (#16115) 2026-12-02 06:18:02 -08:00
ci-constraints-requirements.txt chore(deps): bump docutils from 0.21.2 to 0.23.1 (#16113) 2026-12-02 07:18:39 -08:00
CLAUDE.md Add AGENTS.md with CLAUDE.md symlink (#14794) 2026-05-04 18:41:15 -04:00
CONTRIBUTING.rst link the CONTRIBUTING.rst to the development section of our docs 2014-03-02 09:23:46 -04:00
LICENSE drop support for openssl < 1.1.1d (#8449) 2023-03-24 08:36:58 -04:00
LICENSE.APACHE HTTPS a bunch of links in random places (#4666) 2018-12-31 10:10:09 -06:00
LICENSE.BSD Added new license files. Refs #1209 2014-10-31 07:51:41 -07:00
noxfile.py Enable debug logging for uv in CI and nox installs (#15177) 2026-07-06 02:14:47 +00:00
pyproject.toml reopen main for development (#16115) 2026-12-02 06:18:02 -08:00
README.rst Raise minimum supported Python version to 3.9 (#14739) 2026-04-25 09:58:51 -05:00
release.py Bump Rust workspace crate versions as part of bump-version (#15003) 2026-06-10 10:32:45 -07:00

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/