django-cryptography-5
Easily encrypt data in Django
Decision gist · record as of 2026-08-14
Yes, with conditions. The package solves a real problem—transparent field encryption in Django—and is actively maintained as a fork to support current Django versions. However, the original project's abandonment and the fork's dormant status (563 days since release, 17 stars) suggest limited community adoption and ongoing maintenance uncertainty. Install if you need Django 5 compatibility and transparent field encryption; verify that the fork will receive updates if you require long-term support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 3.2, 4.1, 4.2, 5.0, or 5.1 and Python 3.7 or later; cryptography 2.0+.
- Low install friction with a pure-Python wheel.
- Marked dormant with last commit on 2025-01-28, but this is a maintained fork addressing Django 5 compatibility after the original project was abandoned.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive and poses no restriction on commercial or proprietary use. You may use, modify, and distribute this package with minimal legal friction.
last release 2025-01-28 (563 days) · last repo commit 2025-01-28 · 17 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 124,198 downloads/mo, #11,881 on PyPI
Alternatives
Verify before relying
pip install django-cryptography-5
from django.db import models
from django_cryptography.fields import encrypt
class MyModel(models.Model):
sensitive_data = encrypt(models.CharField(max_length=50))- Whether the fork is actively maintained beyond the initial Django 5 compatibility patch.
- Performance impact of transparent field-level encryption on query operations.
- Whether encrypted fields support Django ORM filtering and lookups.
What it is and what it does
django-cryptography-5 is a fork of the abandoned django-cryptography project, updated to support Django 5. It wraps the cryptography library to add transparent encryption to Django model fields, allowing you to mark sensitive database columns for automatic encryption and decryption without changing application logic.
The package provides an `encrypt()` wrapper that converts any Django model field into an encrypted variant. Data is encrypted before storage and decrypted on retrieval, using symmetric encryption that preserves bi-directional data access. It also offers a drop-in replacement for Django's own cryptographic primitives, using cryptography as the backend. The fork exists because the original project is no longer maintained; this version applies the Django 5 compatibility patch and publishes it to PyPI.
Use it for
- Encrypt personally identifiable information (PII) like email, phone, or SSN in Django models without application-level changes.
- Protect sensitive business data in database fields while maintaining query functionality.
- Replace Django's default cryptographic backend with the more modern cryptography library for new projects.
- Add field-level encryption to legacy Django applications without restructuring models.
- Ensure compliance with data protection regulations by encrypting sensitive fields at rest.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package solves a real problem—transparent field encryption in Django—and is actively maintained as a fork to support current Django versions. However, the original project's abandonment and the fork's dormant status (563 days since release, 17 stars) suggest limited community adoption and ongoing maintenance uncertainty. Install if you need Django 5 compatibility and transparent field encryption; verify that the fork will receive updates if you require long-term support.
Install
django-cryptography-5 on PyPI
Before you install
Low install friction with a pure-Python wheel. Marked dormant with last commit on 2025-01-28, but this is a maintained fork addressing Django 5 compatibility after the original project was abandoned. Depends on stable, widely-used packages: Django, cryptography, django-appconf, and typing-extensions.
Requires Django 3.2, 4.1, 4.2, 5.0, or 5.1 and Python 3.7 or later; cryptography 2.0+.
License in practice
BSD-3-Clause is permissive and poses no restriction on commercial or proprietary use. You may use, modify, and distribute this package with minimal legal friction.
Quickstart
pip install django-cryptography-5
from django.db import models
from django_cryptography.fields import encrypt
class MyModel(models.Model):
sensitive_data = encrypt(models.CharField(max_length=50))
Verify before relying
- Whether the fork is actively maintained beyond the initial Django 5 compatibility patch.
- Performance impact of transparent field-level encryption on query operations.
- Whether encrypted fields support Django ORM filtering and lookups.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesDjangocryptographydjango-appconftyping-extensions |
| Maintenance | Dormant 563 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 124,198 / month, #11,881 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 2 - Pre-AlphaEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 2.2Framework :: Django :: 3.2Framework :: Django :: 4.0Framework :: Django :: 4.1Framework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Security :: Cryptography |
Evidence: django_cryptography_5-2.0.3-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django cryptography wrapper”
- django-cryptography-5Provides encrypted model fields and cryptographic utilities for…
- django-cryptographyWraps Python's cryptography library to add transparent field-level…
- django-cryptography-django5Encrypts and decrypts data in Django models using the cryptography…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also django-cryptography-django5 · django-encrypted-model-fields · django-cryptography · django-fernet-fields-v2 · django-fernet-encrypted-fields · djfernet · django-safedelete · cryptography · django-hashid-field · tenseal