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.11 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.100.1 Safe, concurrent, practical language

GitHub Packages downloads:

Last 30 days179,912
Downloads10,649,931
Analytics install events (30 days)17,245
Downloads / install events (30 days)10.4×

Source: GitHub Packages, fetched 2026-12-01T01:08:40Z. Analytics dates: 2026-11-01 to 2026-12-01. 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
Installs17,24569,325348,751
Installs (--HEAD)01577
Installs on Request1,3186,78440,254
Installs on Request (--HEAD)01475
Build Errors57