cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
Find a file
Loy dacdbb9b1f Clarify what to pass to the sign-function (#3066)
Sign needs an ECDSA instance and from following the link to EllipticCurveSignatureAlgorithm, that wasn't clear directly.
2016-07-30 10:22:33 -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 Removed some code that existed for OpenSSL 0.9.8 (#2983) 2016-06-18 11:41:47 -05:00
docs Clarify what to pass to the sign-function (#3066) 2016-07-30 10:22:33 -04:00
src disable static callbacks on Python 3.5 (refs #2970) (#3063) 2016-07-29 14:45:42 +08:00
tests Enforce that p > q to improve OpenSSL compatibility (fixes #2990) (#3010) 2016-07-19 14:12:59 -05:00
vectors reopen master for work on fifteenth release (#2964) 2016-06-04 12:00:54 -07: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 Drop OpenSSL 0.9.8 (#2978) 2016-06-18 10:11:57 -05:00
AUTHORS.rst Add myself to AUTHORS (#3048) 2016-07-19 16:28:20 -04:00
CHANGELOG.rst One shot sign/verification ECDSA (#3029) 2016-07-02 12:43:06 -04:00
codecov.yml Migrate to codecov.yml (#2927) 2016-05-29 16:10:38 -05:00
CONTRIBUTING.rst
dev-requirements.txt pip is prejudiced against dashes and underscores (#2922) 2016-05-29 01:17:08 -04:00
LICENSE Added new license files. Refs #1209 2014-10-31 07:51:41 -07: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
MANIFEST.in convert to cffi 1.0 precompile system 2015-06-07 23:27:54 -05:00
README.rst Fixes #2353 -- document that we need PyPy 2.6+ 2015-09-19 20:57:00 -04:00
setup.py Mark the minimum pytest version in setup.py. (#3035) 2016-07-01 21:32:23 -05:00
tasks.py move bar.done out of the loop because obviously 2015-11-08 10:55:34 +09:00
tox.ini Drop OpenSSL 0.9.8 (#2978) 2016-06-18 10:11:57 -05: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`_.

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/
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev