cryptography

Install command:
brew install cryptography

Formerly known as: python-cryptography

Cryptographic recipes and primitives for Python

https://cryptography.io/en/latest/

License: Apache-2.0 OR BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/cryptography.json

Formula code: cryptography.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 50.0.2
head ⚡️ HEAD

Revision: 2

Depends on:

cffi 2.1.1 C Foreign Function Interface for Python
openssl@4 4.1.0 Cryptography and SSL/TLS Toolkit

Depends on when building from source:

maturin 1.16.0 Build and publish Rust crates as Python packages
pkgconf 3.0.10 Package compiler and linker metadata toolkit
python-setuptools 84.2.1 Easily download, build, install, upgrade, and uninstall Python packages
python@3.14 3.14.10 Interpreted, interactive, object-oriented programming language
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language
rust 1.99.1 Safe, concurrent, practical language

GitHub Packages downloads:

Last 30 days334,104
Downloads10,514,306
Analytics install events (30 days)32,915
Downloads / install events (30 days)10.2×

Source: GitHub Packages, fetched 2026-11-08T00:52:38Z. Analytics dates: 2026-10-09 to 2026-11-08. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs32,90379,290348,712
Installs (--HEAD)121883
Installs on Request3,5238,38741,454
Installs on Request (--HEAD)121781
Build Errors42
Build Errors (--HEAD)5