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.

Release files for cryptography 40.0.2

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.2
File Size Uploaded
cryptography-40.0.2.tar.gz 625.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for cryptography 40.0.2
File
cryptography-40.0.2-pp39-pypy39_pp73-win_amd64.whl PyPy 3.9 PyPy 3.9 7.3 Windows x86-64 Details
cryptography-40.0.2-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.2-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.2-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.2-pp38-pypy38_pp73-win_amd64.whl PyPy 3.8 PyPy 3.8 7.3 Windows x86-64 Details
cryptography-40.0.2-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.2-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.2-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.2-cp36-abi3-win_amd64.whl CPython 3.6 abi3 Windows x86-64 Details
cryptography-40.0.2-cp36-abi3-win32.whl CPython 3.6 abi3 Windows x86-32 Details
cryptography-40.0.2-cp36-abi3-musllinux_1_1_x86_64.whl CPython 3.6 abi3 Linux musl 1.1+ x86-64 Details
cryptography-40.0.2-cp36-abi3-musllinux_1_1_aarch64.whl CPython 3.6 abi3 Linux musl 1.1+ ARM64 Details
cryptography-40.0.2-cp36-abi3-manylinux_2_28_x86_64.whl CPython 3.6 abi3 Linux glibc 2.28+ x86-64 Details
cryptography-40.0.2-cp36-abi3-manylinux_2_28_aarch64.whl CPython 3.6 abi3 Linux glibc 2.28+ ARM64 Details
cryptography-40.0.2-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.2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.6 abi3 Linux glibc 2.17+ ARM64 Details
cryptography-40.0.2-cp36-abi3-macosx_10_12_x86_64.whl CPython 3.6 abi3 macOS 10.12+ x86-64 Details
cryptography-40.0.2-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.2.tar.gz

Download URL cryptography-40.0.2.tar.gz
Size 625.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c33c0d32b8594fa647d2e01dbccc303478e16fdd7cf98652d5b3ed11aa5e5c99
BLAKE2b-256 checksum
How to use checksums
f78004cc7637238b78f8e7354900817135c5a23cf66dfb3f3a216c6d630d6833
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.2-pp39-pypy39_pp73-win_amd64.whl

Download URL cryptography-40.0.2-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
7a38250f433cd41df7fcb763caa3ee9362777fdb4dc642b9a349721d2bf47404
BLAKE2b-256 checksum
How to use checksums
66f1dbf368e3565c4b9b7784b4f595e45ff3b3cde57a9d54aeee9681d2c1a7e6
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.2-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl

Download URL cryptography-40.0.2-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
cbaba590180cba88cb99a5f76f90808a624f18b169b90a4abb40c1fd8c19420e
BLAKE2b-256 checksum
How to use checksums
759c446d0209840eaa639abc564ccac3a8b4c716629bb3424d2f4bdb618cbf34
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.2-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl

Download URL cryptography-40.0.2-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
c0764e72b36a3dc065c155e5b22f93df465da9c39af65516fe04ed3c68c92636
BLAKE2b-256 checksum
How to use checksums
eba0496b34c04a971dafef68fa5f58222b5688f63f956f3b3f92664165a0921f
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.2-pp39-pypy39_pp73-macosx_10_12_x86_64.whl

Download URL cryptography-40.0.2-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
48f388d0d153350f378c7f7b41497a54ff1513c816bcbbcafe5b829e59b9ce5b
BLAKE2b-256 checksum
How to use checksums
72686e942224400261a3f947df8abad1ffe95e338e2466f7a0b5b87f33d8a196
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.2-pp38-pypy38_pp73-win_amd64.whl

Download URL cryptography-40.0.2-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
3daf9b114213f8ba460b829a02896789751626a2a4e7a43a28ee77c04b5e4958
BLAKE2b-256 checksum
How to use checksums
add4a9c46f0fedfad9198740e77b99cb69d4596dfb0ef0e70440f2780373fb24
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.2-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl

Download URL cryptography-40.0.2-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
4f01c9863da784558165f5d4d916093737a75203a5c5286fde60e503e4276c7a
BLAKE2b-256 checksum
How to use checksums
5c26a5bcec07b84ce9064659e15a526976efeb1971cc7fcc61fc71f6a6b659ce
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.2-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl

Download URL cryptography-40.0.2-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
956ba8701b4ffe91ba59665ed170a2ebbdc6fc0e40de5f6059195d9f2b33ca0e
BLAKE2b-256 checksum
How to use checksums
5e12e3eb644d2c040a083f3b3ee12553fe2ac273ef7525722438d2ad141d984f
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.2-pp38-pypy38_pp73-macosx_10_12_x86_64.whl

Download URL cryptography-40.0.2-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
142bae539ef28a1c76794cca7f49729e7c54423f615cfd9b0b1fa90ebe53244b
BLAKE2b-256 checksum
How to use checksums
c6e9a004c5ff4a01e38da38c0d20257f4af41f0858719fb25c5a034ee46d40cd
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.2-cp36-abi3-win_amd64.whl

Download URL cryptography-40.0.2-cp36-abi3-win_amd64.whl
Size 2.6 MB
Tags CPython 3.6 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b12794f01d4cacfbd3177b9042198f3af1c856eedd0a98f10f141385c809a14b
BLAKE2b-256 checksum
How to use checksums
559f53e0df7b81f86967d8997c77b71c5255d3bcabfac0c346b1cff061b80e03
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.2-cp36-abi3-win32.whl

Download URL cryptography-40.0.2-cp36-abi3-win32.whl
Size 2.2 MB
Tags CPython 3.6 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
aecbb1592b0188e030cb01f82d12556cf72e218280f621deed7d806afd2113f9
BLAKE2b-256 checksum
How to use checksums
4196e4c439905077508e78ae15577fdd302c1e582d0bc5f96fcc761da1681dd2
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.2-cp36-abi3-musllinux_1_1_x86_64.whl

Download URL cryptography-40.0.2-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
a95f4802d49faa6a674242e25bfeea6fc2acd915b5e5e29ac90a32b1139cae1c
BLAKE2b-256 checksum
How to use checksums
918913174c6167f452598baa8584133993e3d624b6a19e93748e5f2885a442f2
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.2-cp36-abi3-musllinux_1_1_aarch64.whl

Download URL cryptography-40.0.2-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
d5a1bd0e9e2031465761dfa920c16b0065ad77321d8a8c1f5ee331021fda65e9
BLAKE2b-256 checksum
How to use checksums
8887c720c0b56f6363eaa32c582b6240523010691ad973204649526c4ce28e95
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.2-cp36-abi3-manylinux_2_28_x86_64.whl

Download URL cryptography-40.0.2-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
adc0d980fd2760c9e5de537c28935cc32b9353baaf28e0814df417619c6c8c3b
BLAKE2b-256 checksum
How to use checksums
8e34f54dbfc6d12fa34a50f03bf01319d585e7e9bddd68ad28299b4998e3098b
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.2-cp36-abi3-manylinux_2_28_aarch64.whl

Download URL cryptography-40.0.2-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
a04386fb7bc85fab9cd51b6308633a3c271e3d0d3eae917eebab2fac6219b6d2
BLAKE2b-256 checksum
How to use checksums
ff87cffd495cc78503fb49aa3e19babc126b610174d08aa32c0d1d75c6499afc
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.2-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cryptography-40.0.2-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
0dcca15d3a19a66e63662dc8d30f8036b07be851a8680eda92d079868f106288
BLAKE2b-256 checksum
How to use checksums
9c1b30faebcef9be2df5728a8086b8fc15fff92364fe114fb207b70cd7c81329
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.2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL cryptography-40.0.2-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
4df2af28d7bedc84fe45bd49bc35d710aede676e2a4cb7fc6d103a2adc8afe4d
BLAKE2b-256 checksum
How to use checksums
0d91b2efda2ffb30b1623016d8e8ea6f59dde22b9bc86c0883bc12d965c53dca
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.2-cp36-abi3-macosx_10_12_x86_64.whl

Download URL cryptography-40.0.2-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
05dc219433b14046c476f6f09d7636b92a1c3e5808b9a6536adf4932b3b2c440
BLAKE2b-256 checksum
How to use checksums
8586a17a4baf08e0ae6496b44f75136f8e14b843fd3d8a3f4105c0fd79d4786b
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.2-cp36-abi3-macosx_10_12_universal2.whl

Download URL cryptography-40.0.2-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
8f79b5ff5ad9d3218afb1e7e20ea74da5f76943ee5edb7f76e56ec5161ec782b
BLAKE2b-256 checksum
How to use checksums
ccaa285f288e36d398db873d4cc20984c9a132ef5eace539d91babe4c4e94aaa
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.2 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