cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
Find a file
2017-05-26 02:26:45 -04:00
.jenkins add the scripts we use to build the wheels in jenkins to version control (#2896) 2016-05-29 20:05:36 -04:00
.travis Fixed #3334 -- added Python 3.6 support (#3335) 2016-12-23 11:20:36 -06:00
docs it's called macOS and let's document openssl 1.1.0 installation on mac (#3437) 2017-03-09 18:18:24 -05:00
src 1.8.2 changelog and version bump (#3614) 2017-05-26 02:26:45 -04:00
tests reverts a change to our exceptions (#3429) 2017-03-09 08:21:25 -05:00
vectors 1.8.2 changelog and version bump (#3614) 2017-05-26 02:26:45 -04:00
.coveragerc properly merge pypy coverage with coveragerc paths 2016-01-07 10:41:04 -08:00
.gitignore Fix .gitignore. 2015-09-26 22:31:53 +08:00
.mention-bot @dstufft is also annoyed by the mentionbot 2016-01-02 10:25:39 -06:00
.travis.yml bump openssl for tests to 1.1.0e (#3399) 2017-02-16 15:15:24 -06:00
AUTHORS.rst Dh serialization changelog (#3385) 2017-02-08 12:38:42 +08:00
CHANGELOG.rst 1.8.2 changelog and version bump (#3614) 2017-05-26 02:26:45 -04:00
codecov.yml Migrate to codecov.yml (#2927) 2016-05-29 16:10:38 -05:00
CONTRIBUTING.rst link the CONTRIBUTING.rst to the development section of our docs 2014-03-02 09:23:46 -04:00
dev-requirements.txt tox 2.4 has new syntax for specifying extras (#3212) 2016-11-06 00:00:37 -04:00
Jenkinsfile various backports for 1.8.2 (#3615) 2017-05-26 01:58:19 -04:00
LICENSE New osrandom_engine in C (#3229) 2016-12-09 10:02:26 -06:00
LICENSE.APACHE Added new license files. Refs #1209 2014-10-31 07:51:41 -07:00
LICENSE.BSD Added new license files. Refs #1209 2014-10-31 07:51:41 -07:00
LICENSE.PSF C locking callback (#3226) 2016-11-13 12:55:22 -08:00
MANIFEST.in convert to cffi 1.0 precompile system 2015-06-07 23:27:54 -05:00
README.rst Fixed #3141 -- link some install docs in the readme (#3146) 2016-09-12 21:07:37 -05:00
setup.py various backports for 1.8.2 (#3615) 2017-05-26 01:58:19 -04:00
tasks.py move bar.done out of the loop because obviously 2015-11-08 10:55:34 +09:00
tox.ini Fixed #3334 -- added Python 3.6 support (#3335) 2016-12-23 11:20:36 -06:00

Cryptography
============

.. image:: https://img.shields.io/pypi/v/cryptography.svg
    :target: https://pypi.python.org/pypi/cryptography/
    :alt: Latest Version

.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
    :target: https://cryptography.io
    :alt: Latest Docs

.. image:: https://travis-ci.org/pyca/cryptography.svg?branch=master
    :target: https://travis-ci.org/pyca/cryptography

.. image:: https://codecov.io/github/pyca/cryptography/coverage.svg?branch=master
    :target: https://codecov.io/github/pyca/cryptography?branch=master


``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 2.6-2.7, Python 3.3+, and PyPy 2.6+.

``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
    '...'
    >>> f.decrypt(token)
    '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 ``#cryptography-dev`` on Freenode to ask questions or get
involved.


.. _`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