1
0
Fork 0
mirror of https://github.com/pyca/cryptography.git synced 2025-12-06 02:48:26 +00:00
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. https://cryptography.io
Find a file
pyca-boringbot[bot] cc188a35f9
Bump BoringSSL, OpenSSL, AWS-LC in CI (#13969)
Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>
2025-12-05 07:30:50 -05:00
.github Bump BoringSSL, OpenSSL, AWS-LC in CI (#13969) 2025-12-05 07:30:50 -05:00
docs Deprecate short TripleDES key lengths (#13928) 2025-11-30 18:30:17 -06:00
src fix type annoations for cffi module (#13965) 2025-12-03 14:39:46 +00:00
tests Change how type checking tests work (#13966) 2025-12-03 11:59:22 -06:00
vectors Revert "ML-KEM test vectors from boringssl (#13850)" (#13938) 2025-11-29 17:31:27 -06: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 add explicit config to rtd (#12184) 2024-12-21 08:54:24 -05:00
Cargo.lock chore(deps): bump libc from 0.2.177 to 0.2.178 (#13960) 2025-12-03 13:15:30 +00:00
Cargo.toml chore(deps): bump pyo3 from 0.27.1 to 0.27.2 (#13940) 2025-11-30 13:54:38 +00:00
CHANGELOG.rst Deprecate short TripleDES key lengths (#13928) 2025-11-30 18:30:17 -06:00
ci-constraints-requirements.txt chore(deps): bump ruff from 0.14.7 to 0.14.8 (#13971) 2025-12-05 07:30:09 -05: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 Adopt new simplified maturin build (#13374) 2025-09-01 02:51:10 +09:00
pyproject.toml remove show_contexts setting (#13572) 2025-10-05 20:36:40 +02:00
README.rst fix CI badge (#13003) 2025-05-28 16:52:10 -04:00
release.py added pep 723 metadata to release.py (#13379) 2025-09-01 10:44:51 +09: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.8+ 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/