Skip to main content

cryptography is a package which provides cryptographic recipes and primitives to Python developers.

Project description

Latest Version Latest Docs https://github.com/pyca/cryptography/workflows/CI/badge.svg?branch=main

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.6+ and PyPy3 7.3.10+.

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

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

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryptography-40.0.1.tar.gz (625.0 kB view details)

Uploaded Source

Built Distributions

cryptography-40.0.1-pp39-pypy39_pp73-win_amd64.whl (2.5 MB view details)

Uploaded PyPy Windows x86-64

cryptography-40.0.1-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl (3.6 MB view details)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

cryptography-40.0.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl (3.4 MB view details)

Uploaded PyPy manylinux: glibc 2.28+ ARM64

cryptography-40.0.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded PyPy macOS 10.12+ x86-64

cryptography-40.0.1-pp38-pypy38_pp73-win_amd64.whl (2.5 MB view details)

Uploaded PyPy Windows x86-64

cryptography-40.0.1-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl (3.6 MB view details)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

cryptography-40.0.1-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl (3.4 MB view details)

Uploaded PyPy manylinux: glibc 2.28+ ARM64

cryptography-40.0.1-pp38-pypy38_pp73-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded PyPy macOS 10.12+ x86-64

cryptography-40.0.1-cp36-abi3-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.6+ Windows x86-64

cryptography-40.0.1-cp36-abi3-win32.whl (2.1 MB view details)

Uploaded CPython 3.6+ Windows x86

cryptography-40.0.1-cp36-abi3-musllinux_1_1_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.6+ musllinux: musl 1.1+ x86-64

cryptography-40.0.1-cp36-abi3-musllinux_1_1_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.6+ musllinux: musl 1.1+ ARM64

cryptography-40.0.1-cp36-abi3-manylinux_2_28_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.28+ x86-64

cryptography-40.0.1-cp36-abi3-manylinux_2_28_aarch64.whl (3.5 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.28+ ARM64

cryptography-40.0.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ x86-64

cryptography-40.0.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.5 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARM64

cryptography-40.0.1-cp36-abi3-macosx_10_12_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.6+ macOS 10.12+ x86-64

cryptography-40.0.1-cp36-abi3-macosx_10_12_universal2.whl (5.1 MB view details)

Uploaded CPython 3.6+ macOS 10.12+ universal2 (ARM64, x86-64)

File details

Details for the file cryptography-40.0.1.tar.gz.

File metadata

  • Download URL: cryptography-40.0.1.tar.gz
  • Upload date:
  • Size: 625.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for cryptography-40.0.1.tar.gz
Algorithm Hash digest
SHA256 2803f2f8b1e95f614419926c7e6f55d828afc614ca5ed61543877ae668cc3472
MD5 24dec990fce1d4a614ad86076c8e347f
BLAKE2b-256 15d9c679e9eda76bfc0d60c9d7a4084ca52d0631d9f24ef04f818012f6d1282e

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-pp39-pypy39_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 cc3a621076d824d75ab1e1e530e66e7e8564e357dd723f2533225d40fe35c60c
MD5 fc907aca83f38e2f7e6a4057eaaab713
BLAKE2b-256 baf5c21a6eaa6736bdb56b2333619e07ec27a2e21128a8b0a8c6e88649b5a156

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6f2bbd72f717ce33100e6467572abaedc61f1acb87b8d546001328d7f466b778
MD5 c2b518c0833b6881f6518831b695a622
BLAKE2b-256 0ce14cd34c7eca5cf2420d0d2a050fae52dc47b36c3686943411a0f5e1958a27

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 28d63d75bf7ae4045b10de5413fb1d6338616e79015999ad9cf6fc538f772d41
MD5 e9d5c5f69fe80ea25d1fd60b28b89fbc
BLAKE2b-256 b5583e048b70b16f3cd662c06f6f165494bdb400716f686d177871c18ea9406b

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7c872413353c70e0263a9368c4993710070e70ab3e5318d85510cc91cce77e7c
MD5 a1ddafb2b62652261d2536146fa0ee51
BLAKE2b-256 3e0187993574bc3ee99770c34abdd03836b911729dd136b45abccd2e7351ac61

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-pp38-pypy38_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-pp38-pypy38_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 f5d7b79fa56bc29580faafc2ff736ce05ba31feaa9d4735048b0de7d9ceb2b94
MD5 5666846ce910c1c597c9233057e7339d
BLAKE2b-256 219bef3139f9a533e0a664ca6ec3a46ca2fb2974a1b9da72343ca6b71a24767f

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 32057d3d0ab7d4453778367ca43e99ddb711770477c4f072a51b3ca69602780a
MD5 0669906762ec65a5d4f8c5fe100b2005
BLAKE2b-256 ca0b43b7383dafd5e2aae27fa85655b73d520c50dee349bbf31e018d275806ee

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d36bbeb99704aabefdca5aee4eba04455d7a27ceabd16f3b3ba9bdcc31da86c4
MD5 e5e3e1a43426f042eaae94122e7755fa
BLAKE2b-256 6db95d1a8fc0a44f156bbf0f97adc56efe63222325b6e9b2a52522bb228e1954

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-pp38-pypy38_pp73-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-pp38-pypy38_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cd033d74067d8928ef00a6b1327c8ea0452523967ca4463666eeba65ca350d4c
MD5 084834d0ae95612d1c691a1f1aebfda6
BLAKE2b-256 9420d0881962d7e85157339f9ddba2fb07db5318cd19a5ffb64dab3a479826ef

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a805a7bce4a77d51696410005b3e85ae2839bad9aa38894afc0aa99d8e0c3160
MD5 dd6601eeb4b3978535a498cd6db6d1a3
BLAKE2b-256 4563ecc93740f91ed1de9b24299564926a45fa1920a179d27f27b8805ee85708

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-win32.whl.

File metadata

  • Download URL: cryptography-40.0.1-cp36-abi3-win32.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.6+, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-win32.whl
Algorithm Hash digest
SHA256 650883cc064297ef3676b1db1b7b1df6081794c4ada96fa457253c4cc40f97db
MD5 df2fde7251304955fb5ed663527a853a
BLAKE2b-256 d5eaa21893d239990a3ac4c1ab1f49743567817b5e11482c370d3fa29733ecd7

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cf91e428c51ef692b82ce786583e214f58392399cf65c341bc7301d096fa3ba2
MD5 7558bec4e53e4bd5003ae8709d826634
BLAKE2b-256 102b485100eb127268fcc72eaf3b0ee643523718b2a23f8ba3904ef027fdbbb2

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 d8aa3609d337ad85e4eb9bb0f8bcf6e4409bfb86e706efa9a027912169e89122
MD5 fd6df96a9e58c7092657ae4ff6e22608
BLAKE2b-256 b62e16f5531d29034554aeca5b6fafb83a2afc75e29666269233f26f9372af05

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e0af458515d5e4028aad75f3bb3fe7a31e46ad920648cd59b64d3da842e4356
MD5 5ad66a52f7b2edac552a44c2130ec74b
BLAKE2b-256 c0ea76eb113bafc97f2e8d9872eda85eb59383892a3559ebbec7595753785fd2

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0a4e3406cfed6b1f6d6e87ed243363652b2586b2d917b0609ca4f97072994405
MD5 9bc63d4d3fc3f97ca52c523df339b3bc
BLAKE2b-256 9265bead02abece1e8b3f0dee942e216cb42df2630aa7efb41d2831d99a9bb68

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 63dac2d25c47f12a7b8aa60e528bfb3c51c5a6c5a9f7c86987909c6c79765554
MD5 2df70a1dcc113a2f613679b5bfb28277
BLAKE2b-256 edd0f7470892f9f496f3d403fca9b141367b1d5350fcd953ef5761674afafaa7

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3a4805a4ca729d65570a1b7cac84eac1e431085d40387b7d3bbaa47e39890b88
MD5 2112d7a2b3cd29e76d6c7d711fb528fc
BLAKE2b-256 e979b258803f573bfb202e29f9f56cd73e2b2e2fee1fe2e9cdf03f388919d8cc

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9618a87212cb5200500e304e43691111570e1f10ec3f35569fdfcd17e28fd797
MD5 fb538b8552a9182aa7f4778c3103751f
BLAKE2b-256 a1e04fa9f4d0c15040ea0b0c19f8442c62a5cebc4846db4a745177a85b7a6d82

See more details on using hashes here.

Provenance

File details

Details for the file cryptography-40.0.1-cp36-abi3-macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for cryptography-40.0.1-cp36-abi3-macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 918cb89086c7d98b1b86b9fdb70c712e5a9325ba6f7d7cfb509e784e0cfc6917
MD5 e911336498b0f21b599ad44afb8eede7
BLAKE2b-256 c70c5eeec6973710b2dacff598be034b13f3812ca8a563e8b324b129a93d0214

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page