--- id: django-cryptography-5 version: "2.0.3" license: BSD-3-Clause license_treatment: permissive maintenance: dormant --- # django-cryptography-5 — Easily encrypt data in Django License: permissive · Maintenance: dormant · Downloads: 124.2K/mo ## 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 above — verify before relying. Provides encrypted model fields and cryptographic utilities for Django, wrapping the cryptography library to enable transparent encryption of sensitive database fields. 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 pip install django-cryptography-5 uv add django-cryptography-5 poetry add django-cryptography-5 ## Installing django-cryptography-5 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. 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)) Requires Django 3.2, 4.1, 4.2, 5.0, or 5.1 and Python 3.7 or later; cryptography 2.0+. 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_current - Install friction: low - Maintenance: dormant - Downloads: 124.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django encrypted fields, database field encryption django, symmetric encryption django models, django cryptography wrapper, encrypt django database, django sensitive data protection, cryptography django integration, django-orm, field-encryption, data-protection [View on SkillFed](https://skillfed.io/packages/django-cryptography-5) · [View on PyPI](https://pypi.org/project/django-cryptography-5/)