---
title: "cryptography | pypx"
description: "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
canonical_url: "https://pypx.app/packages/cryptography"
meta:
  "og:description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_cryptography%2Cversion_50.0.2%2Csummary_cryptography%2Bis%2Ba%2Bpackage%2Bwhich%2Bprovides%2Bcryptographic%2Brecipes%2Band%2Bprimitives%2Bto%2BPython%2Bdevelopers.%2Clicense_Apache-2.0%2BOR%2BBSD-3-Clause%2Cp_Ii9wYWNrYWdlcy9jcnlwdG9ncmFwaHki%2Cs_SR9cQFWBWiDnmb5Q.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "cryptography 50.0.2"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_cryptography%2Cversion_50.0.2%2Csummary_cryptography%2Bis%2Ba%2Bpackage%2Bwhich%2Bprovides%2Bcryptographic%2Brecipes%2Band%2Bprimitives%2Bto%2BPython%2Bdevelopers.%2Clicense_Apache-2.0%2BOR%2BBSD-3-Clause%2Cp_Ii9wYWNrYWdlcy9jcnlwdG9ncmFwaHki%2Cs_SR9cQFWBWiDnmb5Q.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **cryptography**

v50.0.2

cryptography is a package which provides cryptographic recipes and primitives to Python developers.

3.6 MB Python 3.9+ platform-specificApache-2.0 OR BSD-3-Clause2 deps

[**Diff **](https://pypx.app/packages/cryptography/diff)

`$ uv add cryptography`

# pyca/cryptography

![Latest Version](https://img.shields.io/pypi/v/cryptography.svg) ![Latest Docs](https://readthedocs.org/projects/cryptography/badge/?version=latest)

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.9+ 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:

```pycon
>>> 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:

```console
$ 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.

## **Details **

<dl>

<dt>Version</dt>
<dd>50.0.2</dd>

<dt>License</dt>
<dd>Apache-2.0 OR BSD-3-Clause</dd>

<dt>Python</dt>
<dd>!=3.9.0,!=3.9.1,&gt;=3.9</dd>

<dt>Maintainer</dt>
<dd>The Python Cryptographic Authority and individual contributors &lt;cryptography-dev@python.org&gt;</dd></dl>

## **Links**

- [changelog](https://cryptography.io/en/latest/changelog/)
- [documentation](https://cryptography.io/)
- [homepage](https://github.com/pyca/cryptography)
- [issues](https://github.com/pyca/cryptography/issues)
- [source](https://github.com/pyca/cryptography/)
- [View on PyPI](https://pypi.org/project/cryptography/)

## **Release Cadence **

**11**

releases in the past year

avg 29 days between releases

## **Platforms **

linuxarm64mac-armwinmusl

## **Maintainers **

- The Python Cryptographic Authority and individual contributors · [cryptography-dev@python.org](mailto:cryptography-dev@python.org)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/cryptography#webpage","@type":"WebPage","description":"cryptography is a package which provides cryptographic recipes and primitives to Python developers.","name":"cryptography","url":"https://pypx.app/packages/cryptography","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/cryptography"]}]},{"@id":"https://pypx.app/packages/cryptography#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"cryptography is a package which provides cryptographic recipes and primitives to Python developers.","license":"Apache-2.0 OR BSD-3-Clause","name":"cryptography","softwareVersion":"50.0.2"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
