Skip to content
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
Python C Shell
Branch: master
Clone or download
Flamefire and alex Add pthread linking on non-win32 (#5086)
Required to link in static part of pthread, e.g. pthread_atfork
Fixes #5084
Latest commit 085382f Dec 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.azure-pipelines drop python 3.4 support (#5087) Dec 9, 2019
.github Manylinux2010 wheel (#4910) Jun 3, 2019
.travis Get tests passing with latest wycheproof clone (#5076) Nov 26, 2019
docs drop python 3.4 support (#5087) Dec 9, 2019
src Add pthread linking on non-win32 (#5086) Dec 23, 2019
tests Use dict literals. (#5080) Dec 2, 2019
vectors Added a test vector of an OCSP response with SCT extension (#5066) Nov 16, 2019
.coveragerc properly merge pypy coverage with coveragerc paths Jan 7, 2016
.gitattributes test py27 with windows container on azure (#4880) May 8, 2019
.gitignore Add bindings for SSL_OP_NO_DTLS* (#4079) Jan 16, 2018
.travis.yml drop python 3.4 support (#5087) Dec 9, 2019
AUTHORS.rst Add RFC 4514 Distinguished Name formatting for Name, RDN and NameAttr… Dec 8, 2018
CHANGELOG.rst drop python 3.4 support (#5087) Dec 9, 2019
CONTRIBUTING.rst link the CONTRIBUTING.rst to the development section of our docs Mar 2, 2014
LICENSE nit in LICENSE, itself doesn't make sense here (#4016) Nov 10, 2017
LICENSE.APACHE HTTPS a bunch of links in random places (#4666) Dec 31, 2018
LICENSE.BSD Added new license files. Refs #1209 Oct 31, 2014
LICENSE.PSF C locking callback (#3226) Nov 13, 2016
MANIFEST.in Added a new packaging test (#4899) May 27, 2019
README.rst azure badge (#4869) May 4, 2019
azure-pipelines.yml drop python 3.4 support (#5087) Dec 9, 2019
codecov.yml revert codecov.yml workaround and pin coverage to 4.3.4 (#3662) Jun 3, 2017
dev-requirements.txt Remove the final vestigates of Jenkins (#4897) May 26, 2019
pyproject.toml Comply with PEP 508 by using platform_python_implementation (#5006) Oct 17, 2019
release.py Remove the final vestigates of Jenkins (#4897) May 26, 2019
rtd-requirements.txt install only the minimum required to build our docs for rtd (#4133) Mar 6, 2018
setup.py drop python 3.4 support (#5087) Dec 9, 2019
tox.ini drop python 3.4 support (#5087) Dec 9, 2019

README.rst

pyca/cryptography

Latest Version Latest Docs https://travis-ci.org/pyca/cryptography.svg?branch=master https://dev.azure.com/pyca/cryptography/_apis/build/status/Azure%20CI?branchName=master https://codecov.io/github/pyca/cryptography/coverage.svg?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.7, Python 3.4+, and PyPy 5.4+.

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:

>>> 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:

$ 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.

Security

Need to report a security issue? Please consult our security reporting documentation.

You can’t perform that action at this time.