cryptography
Python library providing cryptographic recipes and primitives for secure applications.
Used in agent projects
213
1.7% of 12,697 public repos built with AI coding agents
Rank in auth and security libraries
#4 of 47
by use in those projects
Downloads
281M
PyPI, last 7 days, cryptography
GitHub stars
7,803
last push Oct 10, 2026
How cryptography is used
cryptography is a dependency in 213 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.7%), #4 of 47 in auth and security libraries. The most used alternative there is NextAuth.js. Projects that use it most often also use python-dotenv (68.1%), Requests (65.3%), Pydantic (58.2%).
Often used with cryptography
| python-dotenv | 68.1% of cryptography projects · 10.4× more than average |
|---|---|
| Requests | 65.3% of cryptography projects · 12.3× more than average |
| Pydantic | 58.2% of cryptography projects · 11.4× more than average |
| Uvicorn | 48.4% of cryptography projects · 11.3× more than average |
| PyYAML | 44.6% of cryptography projects · 14.7× more than average |
| aiohttp | 43.2% of cryptography projects · 18.6× more than average |
| FastAPI | 42.7% of cryptography projects · 10.1× more than average |
| NumPy | 39.9% of cryptography projects · 10.4× more than average |
By coding agent
| Claude Code | 2.4% of projects set up for it |
|---|---|
| GitHub Copilot | 2.1% of projects set up for it |
| Cursor | 2.1% of projects set up for it |
| OpenAI Codex | 2.2% of projects set up for it |
| OpenCode | 1.9% of projects set up for it |
Share of public repos configured for each agent that list cryptography as a dependency.
Install
| Package | pip install cryptography |
|---|---|
| Main stacks | Python (206), Next.js (5), Other (1), React Native / Expo (1) |
| Example projects | Josh-XT/AGiXT, twjackysu/TWSEMCPServer, bobmatnyc/claude-mpm, theWDY/office-editor-mcp, ZongziForu/cn-law-hub |
Alternatives to cryptography
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| NextAuth.js npm Complete open-source authentication solution designed for Next.js applications. |
266 (2.1%) | 6.7M | 28.4K | ISC |
| bcryptjs npm Pure JavaScript bcrypt implementation for secure password hashing without dependencies. |
256 (2.0%) | 14.7M | 3,797 | BSD-3-Clause |
| jsonwebtoken npm Create, verify and decode JSON Web Tokens for authentication and secure data transmission. |
241 (1.9%) | 59.3M | 18.2K | MIT |
| jose npm Comprehensive JWT and JWK handling for Node.js and web runtimes. |
141 (1.1%) | 151M | 7,824 | MIT |
| PyJWT pypi Python library for encoding and decoding JSON Web Tokens. |
128 (1.0%) | 154M | 5,714 | — |
| Better Auth npm Comprehensive authentication framework for TypeScript with multiple strategies. |
126 (1.0%) | 11.4M | 30.2K | MIT |
| Helmet npm Express middleware that sets HTTP security headers to prevent vulnerabilities. |
125 (1.0%) | 16.2M | 10.7K | MIT |
| Privy Auth npm React authentication SDK enabling Web2 and Web3 logins with embedded wallets. |
107 (0.8%) | 430K | — | Apache-2.0 |