Skip to main content
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.

Metadata

Release files for cryptography 40.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cryptography 40.0.0
File Size Uploaded
cryptography-40.0.0.tar.gz 625.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for cryptography 40.0.0
File
cryptography-40.0.0-pp39-pypy39_pp73-win_amd64.whl PyPy 3.9 PyPy 3.9 7.3 Windows x86-64 Details
cryptography-40.0.0-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.28+ x86-64 Details
cryptography-40.0.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.28+ ARM64 Details
cryptography-40.0.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl PyPy 3.9 PyPy 3.9 7.3 macOS 10.12+ x86-64 Details
cryptography-40.0.0-pp38-pypy38_pp73-win_amd64.whl PyPy 3.8 PyPy 3.8 7.3 Windows x86-64 Details
cryptography-40.0.0-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl PyPy 3.8 PyPy 3.8 7.3 Linux glibc 2.28+ x86-64 Details
cryptography-40.0.0-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl PyPy 3.8 PyPy 3.8 7.3 Linux glibc 2.28+ ARM64 Details
cryptography-40.0.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl PyPy 3.8 PyPy 3.8 7.3 macOS 10.12+ x86-64 Details
cryptography-40.0.0-cp36-abi3-win_amd64.whl CPython 3.6 abi3 Windows x86-64 Details
cryptography-40.0.0-cp36-abi3-win32.whl CPython 3.6 abi3 Windows x86-32 Details
cryptography-40.0.0-cp36-abi3-musllinux_1_1_x86_64.whl CPython 3.6 abi3 Linux musl 1.1+ x86-64 Details
cryptography-40.0.0-cp36-abi3-musllinux_1_1_aarch64.whl CPython 3.6 abi3 Linux musl 1.1+ ARM64 Details
cryptography-40.0.0-cp36-abi3-manylinux_2_28_x86_64.whl CPython 3.6 abi3 Linux glibc 2.28+ x86-64 Details
cryptography-40.0.0-cp36-abi3-manylinux_2_28_aarch64.whl CPython 3.6 abi3 Linux glibc 2.28+ ARM64 Details
cryptography-40.0.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.6 abi3 Linux glibc 2.17+ x86-64 Details
cryptography-40.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.6 abi3 Linux glibc 2.17+ ARM64 Details
cryptography-40.0.0-cp36-abi3-macosx_10_12_x86_64.whl CPython 3.6 abi3 macOS 10.12+ x86-64 Details
cryptography-40.0.0-cp36-abi3-macosx_10_12_universal2.whl CPython 3.6 abi3 macOS 10.12+ universal2 (ARM64, x86-64) Details

Total release size: 59.3 MB

Release files / cryptography-40.0.0.tar.gz

Download URL cryptography-40.0.0.tar.gz
Size 625.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f421f6777592eb199ca8abac7c20b9ecef27c50ad63546e6c614b29771b46d0d
BLAKE2b-256 checksum
How to use checksums
e6cac0e8aa240a95098b49369a4efe67e073e53b169506f0a40b972125c5e252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-pp39-pypy39_pp73-win_amd64.whl

Download URL cryptography-40.0.0-pp39-pypy39_pp73-win_amd64.whl
Size 2.5 MB
Tags PyPy 3.9 PyPy 3.9 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
7cc9fc3ffcb766c313ed0515d77d0deabb4f36bdcff3a9f115c43e5ec611b82a
BLAKE2b-256 checksum
How to use checksums
5c8e50240adfc44bf9df293d8edc14e2ac6a3cf857834d1f4bcbe767a72471b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl

Download URL cryptography-40.0.0-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl
Size 3.6 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
722cfddae79684166840be2cbbae154f44a455519e644b60bf274a50ccb834db
BLAKE2b-256 checksum
How to use checksums
145163a9b441f41e8d8d5e44a32f4d7c117946d35cf5d405223fd3a7e64706a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl

Download URL cryptography-40.0.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Size 3.4 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
34f502619964210939bb7ee7cd5df53178534eb08d3526f941695a8f7aa0efe4
BLAKE2b-256 checksum
How to use checksums
e3a6ab142fab9fb4d5a788f4a1ba198dceeb33459caa386b8790cf10eb04b90d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl

Download URL cryptography-40.0.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl
Size 2.6 MB
Tags PyPy 3.9 PyPy 3.9 7.3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e5855a80c77565fe2464e88e0095764e25d8ddb2d24df2b1d31773e80be94435
BLAKE2b-256 checksum
How to use checksums
312690fcf6b8786d21673782282b6c4e7bb4078e639c3e5f713fa9ef02533918
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-pp38-pypy38_pp73-win_amd64.whl

Download URL cryptography-40.0.0-pp38-pypy38_pp73-win_amd64.whl
Size 2.5 MB
Tags PyPy 3.8 PyPy 3.8 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
7162ae4530958114ca2eee30a56eca46527def33493f622f059dc2e825fd0913
BLAKE2b-256 checksum
How to use checksums
f73f3bf2f3e924db98cfefee27ac287f97a709a3700dacf5febf98c230a9e510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl

Download URL cryptography-40.0.0-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl
Size 3.6 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.8 PyPy 3.8 7.3
SHA-256 checksum
How to use checksums
14da8c26755ffa5c7863ffa5e8b87cb9596a21b6c34852cb19e0f48c226c64fb
BLAKE2b-256 checksum
How to use checksums
aafd604d59dd0ced0b6d2e306a70a452a9fb4b34ff4ed8a966e857f0ee581f88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl

Download URL cryptography-40.0.0-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl
Size 3.4 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.8 PyPy 3.8 7.3
SHA-256 checksum
How to use checksums
b05c9f25a1ea42e427085230815bbdebe15a53bb6163c4c06022e5630645046b
BLAKE2b-256 checksum
How to use checksums
a7c75aacbf3dc55f42cb79d55e4e8ac0d579b50f8a834f0b84cad730ac643831
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl

Download URL cryptography-40.0.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl
Size 2.6 MB
Tags PyPy 3.8 PyPy 3.8 7.3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
fafa997b9e6818db333ded4b379f5b7679b48bd88ac878428cea2a1aa6e79fd8
BLAKE2b-256 checksum
How to use checksums
943999b7ff8484c8d665879ebfa0b63b2988f6f46969946be25aa5c77c0becd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-win_amd64.whl

Download URL cryptography-40.0.0-cp36-abi3-win_amd64.whl
Size 2.6 MB
Tags CPython 3.6 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
fba36ec552794a06a07ac8bdc5ad83a587f6959d98547f373d401975d55c7c9e
BLAKE2b-256 checksum
How to use checksums
17dc0adaaff582c039131c88791209fa7cd1d8f7c47671439fbad7b32fc3680f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-win32.whl

Download URL cryptography-40.0.0-cp36-abi3-win32.whl
Size 2.1 MB
Tags CPython 3.6 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
e917a07094217edeefe8f6ea960b45d7aab650b982e4209da078332cc9d3ac3a
BLAKE2b-256 checksum
How to use checksums
10092749f977a25dfe50208ca0da2cc05aa8b834eddaf382aef0960497655d22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-musllinux_1_1_x86_64.whl

Download URL cryptography-40.0.0-cp36-abi3-musllinux_1_1_x86_64.whl
Size 3.8 MB
Tags CPython 3.6 Linux musl 1.1+ x86-64 abi3
SHA-256 checksum
How to use checksums
6b36e2864e04c82634879c7e7aad48824b1847fdb06b64cd410d2ec5e51d1b31
BLAKE2b-256 checksum
How to use checksums
acfd6255113be54938d66120cf1c1c5d6b395ce30eedee3f2359fc0f8b6524de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-musllinux_1_1_aarch64.whl

Download URL cryptography-40.0.0-cp36-abi3-musllinux_1_1_aarch64.whl
Size 3.6 MB
Tags CPython 3.6 Linux musl 1.1+ ARM64 abi3
SHA-256 checksum
How to use checksums
23c42c59c2b5b9ddc6a85b5c46b8fabc4d63a1714f4dbea4bf20d25690bf2365
BLAKE2b-256 checksum
How to use checksums
b6ab4446fd18bcd60568e5bd17da9d1a49fb18cf63df712eec3ab4c9784fb431
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-manylinux_2_28_x86_64.whl

Download URL cryptography-40.0.0-cp36-abi3-manylinux_2_28_x86_64.whl
Size 3.7 MB
Tags CPython 3.6 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
43089be365c0ca4235c6e4e781f3bc125bc1fff576c9dd22cdfb585309b9bb9d
BLAKE2b-256 checksum
How to use checksums
728a722fa27aa6c4eed9403033814bc1b062a1bc963b73d2f7487e1cdf6f62c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-manylinux_2_28_aarch64.whl

Download URL cryptography-40.0.0-cp36-abi3-manylinux_2_28_aarch64.whl
Size 3.5 MB
Tags CPython 3.6 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
754dc5ab648113dc54197f242db43234a04e4d61193fb5d3ebb42bd569dca571
BLAKE2b-256 checksum
How to use checksums
c004405b3e2ae8ee8193d4a7483a38ab7f9be6ca27e69625c6f196a2c8ea843d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cryptography-40.0.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.7 MB
Tags CPython 3.6 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
f2c4134d29cdce0735c16abf48fa8435f001a7b0031e68dd9a9ee1c80a29374a
BLAKE2b-256 checksum
How to use checksums
7b2daced86466fda4de079a42c3449cbf3926a923fb4043521c4b02644ba0ec5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL cryptography-40.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.5 MB
Tags CPython 3.6 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
22e63fb48e2615cfab5a9c4bb457d35e7ae03ea8593996bfbe257e78244d12d0
BLAKE2b-256 checksum
How to use checksums
4ba9aeefab0b3824c87d2800401abcc563d1aa5b3a429a968278226547139a31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-macosx_10_12_x86_64.whl

Download URL cryptography-40.0.0-cp36-abi3-macosx_10_12_x86_64.whl
Size 2.8 MB
Tags CPython 3.6 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
71cb346b9dd1537102e7466a2d629385b01847f8d96cd7405f0e717d91cebc8e
BLAKE2b-256 checksum
How to use checksums
0857e567917ae34d1735111c0efb1eef60236671ab4540dbb181b1ffe079b743
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / cryptography-40.0.0-cp36-abi3-macosx_10_12_universal2.whl

Download URL cryptography-40.0.0-cp36-abi3-macosx_10_12_universal2.whl
Size 5.1 MB
Tags CPython 3.6 abi3 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
168ded448fb5d82dfa911156ab8b13b1716de65bd50ff977f4657643f998fa05
BLAKE2b-256 checksum
How to use checksums
10b77ba8bb56e445e828be9e4d1ba5fca8ce4f0a6f37b8f11e2c0b28f68b5c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

40.0.0 This release

19 release files

3.4.8

19 release files

3.4.7

14 release files

3.4.6

12 release files

3.4.5

7 release files

3.4.4

7 release files

3.4.3

7 release files

3.4.2

7 release files

3.4.1

7 release files

3.4

8 release files

3.3.1

14 release files

3.3

14 release files

3.2.1

22 release files

3.2

22 release files

3.1.1

22 release files

3.1

22 release files

3.0

19 release files

2.9.2

19 release files

2.9.1

19 release files

2.9

19 release files

2.8

21 release files

2.7

16 release files

2.6.1

19 release files

2.6

19 release files

2.5

19 release files

2.4.2

19 release files

2.4.1

19 release files

2.4

13 release files

2.3.1

19 release files

2.3

19 release files

2.2.2

19 release files

2.2.1

17 release files

2.2

17 release files

2.1.4

23 release files

2.1.2

23 release files

2.1.1

27 release files

2.1

27 release files

2.0.2

30 release files

2.0.1

30 release files

2.0

32 release files

1.9

18 release files

1.8.2

26 release files

1.8.1

26 release files

1.8

26 release files

1.7.2

19 release files

1.7.1

26 release files

1.7

22 release files

1.6

22 release files

1.5.2

22 release files

1.5.1

22 release files

1.5

22 release files

1.4

22 release files

1.3.1

24 release files

1.3

21 release files

1.2.2

21 release files

1.2

21 release files

1.1.2

21 release files

1.1.1

21 release files

1.1

17 release files

1.0.2

17 release files

1.0

9 release files

0.9.3

9 release files

0.9.2

9 release files

0.9.1

9 release files

0.9

9 release files

0.8.2

11 release files

0.8.1

11 release files

0.8

11 release files

0.7.2

11 release files

0.7.1

11 release files

0.7

11 release files

0.6.1

11 release files

0.6

11 release files

0.5.4

11 release files

0.5.2

11 release files

0.5

11 release files

0.4

11 release files

0.3

6 release files

0.2.2

5 release files

0.2.1

5 release files

0.2

5 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page