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.2.tar.gz (625.6 kB view details)

Uploaded Source

Built Distributions

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

Uploaded PyPy Windows x86-64

cryptography-40.0.2-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.2-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl (3.4 MB view details)

Uploaded PyPy manylinux: glibc 2.28+ ARM64

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

Uploaded PyPy macOS 10.12+ x86-64

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

Uploaded PyPy Windows x86-64

cryptography-40.0.2-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.2-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl (3.4 MB view details)

Uploaded PyPy manylinux: glibc 2.28+ ARM64

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

Uploaded PyPy macOS 10.12+ x86-64

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

Uploaded CPython 3.6+ Windows x86-64

cryptography-40.0.2-cp36-abi3-win32.whl (2.2 MB view details)

Uploaded CPython 3.6+ Windows x86

cryptography-40.0.2-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.2-cp36-abi3-musllinux_1_1_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.6+ musllinux: musl 1.1+ ARM64

cryptography-40.0.2-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.2-cp36-abi3-manylinux_2_28_aarch64.whl (3.5 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.28+ ARM64

cryptography-40.0.2-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.2-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.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: cryptography-40.0.2.tar.gz
  • Upload date:
  • Size: 625.6 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.2.tar.gz
Algorithm Hash digest
SHA256 c33c0d32b8594fa647d2e01dbccc303478e16fdd7cf98652d5b3ed11aa5e5c99
MD5 a5038e911cc5e2f20d1aa424e9c09464
BLAKE2b-256 f78004cc7637238b78f8e7354900817135c5a23cf66dfb3f3a216c6d630d6833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 7a38250f433cd41df7fcb763caa3ee9362777fdb4dc642b9a349721d2bf47404
MD5 8ec496acd20f95dd3e139dcc169761e3
BLAKE2b-256 66f1dbf368e3565c4b9b7784b4f595e45ff3b3cde57a9d54aeee9681d2c1a7e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cbaba590180cba88cb99a5f76f90808a624f18b169b90a4abb40c1fd8c19420e
MD5 1331c528d641ea3379695e4e8c8be2fc
BLAKE2b-256 759c446d0209840eaa639abc564ccac3a8b4c716629bb3424d2f4bdb618cbf34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c0764e72b36a3dc065c155e5b22f93df465da9c39af65516fe04ed3c68c92636
MD5 e0fb3d42e32456b20b32e445743515b5
BLAKE2b-256 eba0496b34c04a971dafef68fa5f58222b5688f63f956f3b3f92664165a0921f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-pp39-pypy39_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 48f388d0d153350f378c7f7b41497a54ff1513c816bcbbcafe5b829e59b9ce5b
MD5 2dcce66585663eb1c9e77bbef3bf1cb5
BLAKE2b-256 72686e942224400261a3f947df8abad1ffe95e338e2466f7a0b5b87f33d8a196

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-pp38-pypy38_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 3daf9b114213f8ba460b829a02896789751626a2a4e7a43a28ee77c04b5e4958
MD5 e2e9e35d4e715ceb6a9c45cab3aa4c5e
BLAKE2b-256 add4a9c46f0fedfad9198740e77b99cb69d4596dfb0ef0e70440f2780373fb24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4f01c9863da784558165f5d4d916093737a75203a5c5286fde60e503e4276c7a
MD5 c0de62fc1c832819af322178268f47eb
BLAKE2b-256 5c26a5bcec07b84ce9064659e15a526976efeb1971cc7fcc61fc71f6a6b659ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 956ba8701b4ffe91ba59665ed170a2ebbdc6fc0e40de5f6059195d9f2b33ca0e
MD5 f71bd30b3cea287e1d78c72b617cefbe
BLAKE2b-256 5e12e3eb644d2c040a083f3b3ee12553fe2ac273ef7525722438d2ad141d984f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-pp38-pypy38_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 142bae539ef28a1c76794cca7f49729e7c54423f615cfd9b0b1fa90ebe53244b
MD5 02bc18cbc570ab952be82a48cf7d5b6d
BLAKE2b-256 c6e9a004c5ff4a01e38da38c0d20257f4af41f0858719fb25c5a034ee46d40cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b12794f01d4cacfbd3177b9042198f3af1c856eedd0a98f10f141385c809a14b
MD5 9d0a9dac29e2e398484726bcc47ca774
BLAKE2b-256 559f53e0df7b81f86967d8997c77b71c5255d3bcabfac0c346b1cff061b80e03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cryptography-40.0.2-cp36-abi3-win32.whl
  • Upload date:
  • Size: 2.2 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.2-cp36-abi3-win32.whl
Algorithm Hash digest
SHA256 aecbb1592b0188e030cb01f82d12556cf72e218280f621deed7d806afd2113f9
MD5 e7f03d835d58f95f46534125353f44cf
BLAKE2b-256 4196e4c439905077508e78ae15577fdd302c1e582d0bc5f96fcc761da1681dd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a95f4802d49faa6a674242e25bfeea6fc2acd915b5e5e29ac90a32b1139cae1c
MD5 6c482e32006df541180cacfc50744748
BLAKE2b-256 918913174c6167f452598baa8584133993e3d624b6a19e93748e5f2885a442f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 d5a1bd0e9e2031465761dfa920c16b0065ad77321d8a8c1f5ee331021fda65e9
MD5 9ee6c7a6408db6f7336d3eec2af6f506
BLAKE2b-256 8887c720c0b56f6363eaa32c582b6240523010691ad973204649526c4ce28e95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 adc0d980fd2760c9e5de537c28935cc32b9353baaf28e0814df417619c6c8c3b
MD5 625010f81520541d851ab733e504f214
BLAKE2b-256 8e34f54dbfc6d12fa34a50f03bf01319d585e7e9bddd68ad28299b4998e3098b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a04386fb7bc85fab9cd51b6308633a3c271e3d0d3eae917eebab2fac6219b6d2
MD5 ea096de6038d9c9282d551c7c7426822
BLAKE2b-256 ff87cffd495cc78503fb49aa3e19babc126b610174d08aa32c0d1d75c6499afc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0dcca15d3a19a66e63662dc8d30f8036b07be851a8680eda92d079868f106288
MD5 d2da9f618988c59a0407c36ca30b4103
BLAKE2b-256 9c1b30faebcef9be2df5728a8086b8fc15fff92364fe114fb207b70cd7c81329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4df2af28d7bedc84fe45bd49bc35d710aede676e2a4cb7fc6d103a2adc8afe4d
MD5 164e428c56f9f81234375bf2962157a6
BLAKE2b-256 0d91b2efda2ffb30b1623016d8e8ea6f59dde22b9bc86c0883bc12d965c53dca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 05dc219433b14046c476f6f09d7636b92a1c3e5808b9a6536adf4932b3b2c440
MD5 07d65f6b2be9fc936511587a4eca1cf4
BLAKE2b-256 8586a17a4baf08e0ae6496b44f75136f8e14b843fd3d8a3f4105c0fd79d4786b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.2-cp36-abi3-macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 8f79b5ff5ad9d3218afb1e7e20ea74da5f76943ee5edb7f76e56ec5161ec782b
MD5 847924541e2f1b0143e1c47e35de5c57
BLAKE2b-256 ccaa285f288e36d398db873d4cc20984c9a132ef5eace539d91babe4c4e94aaa

See more details on using hashes here.

Supported by

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