cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Project description
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.7+ and PyPy3 7.3.11+.
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.
Project details
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
Built Distributions
Hashes for cryptography-43.0.3-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f18c716be16bc1fea8e95def49edf46b82fccaa88587a45f8dc0ff6ab5d8e0a7 |
|
MD5 | 5a4e4e77510444ce15101359afa998eb |
|
BLAKE2b-256 | 91bbcd2c13be3332e7af3cdf16154147952d39075b9f61ea5e6b5241bf4bf436 |
Hashes for cryptography-43.0.3-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 281c945d0e28c92ca5e5930664c1cefd85efe80e5c0d2bc58dd63383fda29f83 |
|
MD5 | cd253796670f612a124d14c5565e0b2b |
|
BLAKE2b-256 | d8321e1d78b316aa22c0ba6493cc271c1c309969e5aa5c22c830a1d7ce3471e6 |
Hashes for cryptography-43.0.3-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a431ee15799d6db9fe80c82b055bae5a752bef645bba795e8e52687c69efe3 |
|
MD5 | 034fdfaad3e806555b7f52089fe77622 |
|
BLAKE2b-256 | 9390116edd5f8ec23b2dc879f7a42443e073cdad22950d3c8ee834e3b8124543 |
Hashes for cryptography-43.0.3-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d03b5621a135bffecad2c73e9f4deb1a0f977b9a8ffe6f8e002bf6c9d07b918c |
|
MD5 | 902bff305097f43d34bcb8567f643374 |
|
BLAKE2b-256 | 6fdbd8b8a039483f25fc3b70c90bc8f3e1d4497a99358d610c5067bf3bd4f0af |
Hashes for cryptography-43.0.3-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ce6fae5bdad59577b44e4dfed356944fbf1d925269114c28be377692643b4ff |
|
MD5 | 183eed8a4aea6c1e0f414590ca69072a |
|
BLAKE2b-256 | 21ea6c38ca546d5b6dab3874c2b8fc6b1739baac29bacdea31a8c6c0513b3cfa |
Hashes for cryptography-43.0.3-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec0bcf7e17c0c5669d881b1cd38c4972fade441b27bda1051665faaa89bdcaa |
|
MD5 | 1038ebf94646c22337497041e97d3543 |
|
BLAKE2b-256 | c0cfc9eea7791b961f279fb6db86c3355cfad29a73141f46427af71852b23b95 |
Hashes for cryptography-43.0.3-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53a583b6637ab4c4e3591a15bc9db855b8d9dee9a669b550f311480acab6eb08 |
|
MD5 | ef791c4baa8352395944b4715d212846 |
|
BLAKE2b-256 | d729a233efb3e98b13d9175dcb3c3146988ec990896c8fa07e8467cce27d5a80 |
Hashes for cryptography-43.0.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a02ded6cd4f0a5562a8887df8b3bd14e822a90f97ac5e544c162899bc467664 |
|
MD5 | 331f039ec6038ac4472191225f2c4a46 |
|
BLAKE2b-256 | ccfcff7c76afdc4f5933b5e99092528d4783d3d1b131960fc8b31eb38e076ca8 |
Hashes for cryptography-43.0.3-cp39-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c580952eef9bf68c4747774cde7ec1d85a6e61de97281f2dba83c7d2c806362 |
|
MD5 | 8d75cacb9ad4ce4f9f87311bdc50558a |
|
BLAKE2b-256 | 875c3dab83cc4aba1f4b0e733e3f0c3e7d4386440d660ba5b1e3ff995feb734d |
Hashes for cryptography-43.0.3-cp39-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d56e96520b1020449bbace2b78b603442e7e378a9b3bd68de65c782db1507995 |
|
MD5 | 16174a38337222b9a779d04219d57231 |
|
BLAKE2b-256 | 811effcc41b3cebd64ca90b28fd58141c5f68c83d48563c88333ab660e002cd3 |
Hashes for cryptography-43.0.3-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df6b6c6d742395dd77a23ea3728ab62f98379eff8fb61be2744d4679ab678f73 |
|
MD5 | fa8421b4fcb0adb0637106fe32cd21a7 |
|
BLAKE2b-256 | 2a33b3682992ab2e9476b9c81fff22f02c8b0a1e6e1d49ee1750a67d85fd7ed2 |
Hashes for cryptography-43.0.3-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1be4655c7ef6e1bbe6b5d0403526601323420bcf414598955968c9ef3eb7d16 |
|
MD5 | bed11bd18c8693e081f3c7c22a759ef6 |
|
BLAKE2b-256 | 21ceb9c9ff56c7164d8e2edfb6c9305045fbc0df4508ccfdb13ee66eb8c95b0e |
Hashes for cryptography-43.0.3-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e6fc39c4ab499049df3bdf567f768a723a5e8464816e8f009f121a5a9f4405 |
|
MD5 | 29b9a531187b47ee0651d97b2e50f226 |
|
BLAKE2b-256 | ac25e715fa0bc24ac2114ed69da33adf451a38abb6f3f24ec207908112e9ba53 |
Hashes for cryptography-43.0.3-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7b178f11ed3664fd0e995a47ed2b5ff0a12d893e41dd0494f406d1cf555cab7 |
|
MD5 | a343834f2eb692e20c825471ddaaeb6b |
|
BLAKE2b-256 | 7c042345ca92f7a22f601a9c62961741ef7dd0127c39f7310dffa0041c80f16f |
Hashes for cryptography-43.0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f996e7268af62598f2fc1204afa98a3b5712313a55c4c9d434aef49cadc91d4 |
|
MD5 | 5bc3ef7d972abbd6f7a89923d8978363 |
|
BLAKE2b-256 | 2a2c488776a3dc843f95f86d2f957ca0fc3407d0242b50bede7fad1e339be03f |
Hashes for cryptography-43.0.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 846da004a5804145a5f441b8530b4bf35afbf7da70f82409f151695b127213d5 |
|
MD5 | 1991241b84a0c5b3841f55fc0f7a318b |
|
BLAKE2b-256 | 2f7855356eb9075d0be6e81b59f45c7b48df87f76a20e73893872170471f3ee8 |
Hashes for cryptography-43.0.3-cp39-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ac43ae87929a5982f5948ceda07001ee5e83227fd69cf55b109144938d96984 |
|
MD5 | 755ef0c957ebce102a7275cabb9d0726 |
|
BLAKE2b-256 | 30d5c8b32c047e2e81dd172138f772e81d852c51f0f2ad2ae8a24f1122e9e9a7 |
Hashes for cryptography-43.0.3-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f46304d6f0c6ab8e52770addfa2fc41e6629495548862279641972b6215451cd |
|
MD5 | ce301c7144484406985e8d6286196d6f |
|
BLAKE2b-256 | ebb10ebff61a004f7f89e7b65ca95f2f2375679d43d0290672f7713ee3162aff |
Hashes for cryptography-43.0.3-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbeb489927bd7af4aa98d4b261af9a5bc025bd87f0e3547e11584be9e9427be2 |
|
MD5 | b8a9a5e5a21fc4ef0312bc84fa578a35 |
|
BLAKE2b-256 | 56487b6b190f1462818b324e674fa20d1d5ef3e24f2328675b9b16189cbf0b3c |
Hashes for cryptography-43.0.3-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ef806b1fef6b06dcebad789f988d3b37ccaee225695cf3e07648eee0fc6b73 |
|
MD5 | 99a57d1a84b16e6cc713f4bc6e33455a |
|
BLAKE2b-256 | fddbe74911d95c040f9afd3612b1f732e52b3e517cb80de8bf183be0b7d413c6 |
Hashes for cryptography-43.0.3-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9762ea51a8fc2a88b70cf2995e5675b38d93bf36bd67d91721c309df184f49bd |
|
MD5 | 0696067b20ee67c1001560847c6a6941 |
|
BLAKE2b-256 | 01f569ae8da70c19864a32b0315049866c4d411cce423ec169993d0434218762 |
Hashes for cryptography-43.0.3-cp37-abi3-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f57f24754fe349223792466a709f8e0c093205ff0dca557af51072ff47ab18 |
|
MD5 | f3fe7da46dcc3005964e57df5600094c |
|
BLAKE2b-256 | 0e16a28ddf78ac6e7e3f25ebcef69ab15c2c6be5ff9743dd0709a69a4f968472 |
Hashes for cryptography-43.0.3-cp37-abi3-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 443c4a81bb10daed9a8f334365fe52542771f25aedaf889fd323a853ce7377d6 |
|
MD5 | 79a785bd6f781903e82636f4592f3747 |
|
BLAKE2b-256 | 4e4980c3a7b5514d1b416d7350830e8c422a4d667b6d9b16a9392ebfd4a5388a |
Hashes for cryptography-43.0.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e1ce50266f4f70bf41a2c6dc4358afadae90e2a1e5342d3c08883df1675374f |
|
MD5 | c76332b0dff8de8bb17db04f95212129 |
|
BLAKE2b-256 | 0abef9a1f673f0ed4b7f6c643164e513dbad28dd4f2dcdf5715004f172ef24b6 |
Hashes for cryptography-43.0.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63efa177ff54aec6e1c0aefaa1a241232dcd37413835a9b674b6e3f0ae2bfd3e |
|
MD5 | f79e28c2f978394937f3d2ea358635b6 |
|
BLAKE2b-256 | a3014896f3d1b392025d4fcbecf40fdea92d3df8662123f6835d0af828d148fd |
Hashes for cryptography-43.0.3-cp37-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf7a1932ac4176486eab36a19ed4c0492da5d97123f1406cf15e41b05e787d2e |
|
MD5 | fb453336d6b3eb189fe072b833f3ef40 |
|
BLAKE2b-256 | 1ff301fdf26701a26f4b4dbc337a26883ad5bccaa6f1bbbdd29cd89e22f18a1c |