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

Uploaded Source

Built Distributions

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

Uploaded PyPyWindows x86-64

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

Uploaded PyPymanylinux: glibc 2.28+ x86-64

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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded PyPymacOS 10.12+ x86-64

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

Uploaded PyPyWindows x86-64

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

Uploaded PyPymanylinux: glibc 2.28+ x86-64

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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded PyPymacOS 10.12+ x86-64

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

Uploaded CPython 3.6+Windows x86-64

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

Uploaded CPython 3.6+Windows x86

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

Uploaded CPython 3.6+musllinux: musl 1.1+ ARM64

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

Uploaded CPython 3.6+manylinux: glibc 2.28+ ARM64

cryptography-40.0.0-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.0-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.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: cryptography-40.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 f421f6777592eb199ca8abac7c20b9ecef27c50ad63546e6c614b29771b46d0d
MD5 4eea75afe79bf551bd3265476fd6f6ce
BLAKE2b-256 e6cac0e8aa240a95098b49369a4efe67e073e53b169506f0a40b972125c5e252

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 7cc9fc3ffcb766c313ed0515d77d0deabb4f36bdcff3a9f115c43e5ec611b82a
MD5 c505badcfbb9a95a280348e218ca716c
BLAKE2b-256 5c8e50240adfc44bf9df293d8edc14e2ac6a3cf857834d1f4bcbe767a72471b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 722cfddae79684166840be2cbbae154f44a455519e644b60bf274a50ccb834db
MD5 2b6fe479f989ce0bef3dd2d71f6d038d
BLAKE2b-256 145163a9b441f41e8d8d5e44a32f4d7c117946d35cf5d405223fd3a7e64706a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 34f502619964210939bb7ee7cd5df53178534eb08d3526f941695a8f7aa0efe4
MD5 80f48607326211a9dca9ee6fac1fa323
BLAKE2b-256 e3a6ab142fab9fb4d5a788f4a1ba198dceeb33459caa386b8790cf10eb04b90d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e5855a80c77565fe2464e88e0095764e25d8ddb2d24df2b1d31773e80be94435
MD5 64392d19dd3783b9ef07efeae9377d99
BLAKE2b-256 312690fcf6b8786d21673782282b6c4e7bb4078e639c3e5f713fa9ef02533918

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 7162ae4530958114ca2eee30a56eca46527def33493f622f059dc2e825fd0913
MD5 9887bbbbb60f3792fdfe232356043f96
BLAKE2b-256 f73f3bf2f3e924db98cfefee27ac287f97a709a3700dacf5febf98c230a9e510

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 14da8c26755ffa5c7863ffa5e8b87cb9596a21b6c34852cb19e0f48c226c64fb
MD5 3c48bc55b0f82ed72ad0f7b1397794a6
BLAKE2b-256 aafd604d59dd0ced0b6d2e306a70a452a9fb4b34ff4ed8a966e857f0ee581f88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b05c9f25a1ea42e427085230815bbdebe15a53bb6163c4c06022e5630645046b
MD5 399868ebe354f5656ef34ddb0ec0d26e
BLAKE2b-256 a7c75aacbf3dc55f42cb79d55e4e8ac0d579b50f8a834f0b84cad730ac643831

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fafa997b9e6818db333ded4b379f5b7679b48bd88ac878428cea2a1aa6e79fd8
MD5 2313f9b20a5fc3f83f7c855163c0a2e3
BLAKE2b-256 943999b7ff8484c8d665879ebfa0b63b2988f6f46969946be25aa5c77c0becd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fba36ec552794a06a07ac8bdc5ad83a587f6959d98547f373d401975d55c7c9e
MD5 134e01fed0871cd32b3864dea5615293
BLAKE2b-256 17dc0adaaff582c039131c88791209fa7cd1d8f7c47671439fbad7b32fc3680f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cryptography-40.0.0-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.0-cp36-abi3-win32.whl
Algorithm Hash digest
SHA256 e917a07094217edeefe8f6ea960b45d7aab650b982e4209da078332cc9d3ac3a
MD5 a0085f101c6ae447badb7e345a9721eb
BLAKE2b-256 10092749f977a25dfe50208ca0da2cc05aa8b834eddaf382aef0960497655d22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 6b36e2864e04c82634879c7e7aad48824b1847fdb06b64cd410d2ec5e51d1b31
MD5 80b8e8160ae2c8b53f29a1ce8cf3a0ff
BLAKE2b-256 acfd6255113be54938d66120cf1c1c5d6b395ce30eedee3f2359fc0f8b6524de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 23c42c59c2b5b9ddc6a85b5c46b8fabc4d63a1714f4dbea4bf20d25690bf2365
MD5 e23d1e4466919a9cd505755c97683736
BLAKE2b-256 b6ab4446fd18bcd60568e5bd17da9d1a49fb18cf63df712eec3ab4c9784fb431

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43089be365c0ca4235c6e4e781f3bc125bc1fff576c9dd22cdfb585309b9bb9d
MD5 af769a157ebb3d8be25821c8d44c944f
BLAKE2b-256 728a722fa27aa6c4eed9403033814bc1b062a1bc963b73d2f7487e1cdf6f62c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 754dc5ab648113dc54197f242db43234a04e4d61193fb5d3ebb42bd569dca571
MD5 106c969f3a4f58e52fe2e04a9bab8d9d
BLAKE2b-256 c004405b3e2ae8ee8193d4a7483a38ab7f9be6ca27e69625c6f196a2c8ea843d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f2c4134d29cdce0735c16abf48fa8435f001a7b0031e68dd9a9ee1c80a29374a
MD5 524013d761a7bf9860d356862706b27b
BLAKE2b-256 7b2daced86466fda4de079a42c3449cbf3926a923fb4043521c4b02644ba0ec5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 22e63fb48e2615cfab5a9c4bb457d35e7ae03ea8593996bfbe257e78244d12d0
MD5 40e1352364ac819ef0ad96307a4d40fd
BLAKE2b-256 4ba9aeefab0b3824c87d2800401abcc563d1aa5b3a429a968278226547139a31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 71cb346b9dd1537102e7466a2d629385b01847f8d96cd7405f0e717d91cebc8e
MD5 e52ca12603ff8a3905826d2cf4042d8d
BLAKE2b-256 0857e567917ae34d1735111c0efb1eef60236671ab4540dbb181b1ffe079b743

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptography-40.0.0-cp36-abi3-macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 168ded448fb5d82dfa911156ab8b13b1716de65bd50ff977f4657643f998fa05
MD5 3ea2bc7c3ba65165aabf492aba9f9a1e
BLAKE2b-256 10b77ba8bb56e445e828be9e4d1ba5fca8ce4f0a6f37b8f11e2c0b28f68b5c91

See more details on using hashes here.

Supported by

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