--- id: django-cryptography-django5 version: "2.2" license: BSD-3-Clause license_treatment: permissive maintenance: dormant --- # django-cryptography-django5 — Easily encrypt data in Django - Fork for Django 5 support License: permissive · Maintenance: dormant · Downloads: 500.3K/mo ## What it is and what it does Django Cryptography wraps the Python cryptography library to add transparent encryption to Django model fields. It lets you mark a field with the encrypt() wrapper, and data is automatically encrypted when saved to the database and decrypted on retrieval—no manual key management in your application code. The package also offers a drop-in replacement for Django's built-in cryptographic primitives, delegating to cryptography as the backend. The package supports Django 3.2 through 5.0 and Python 3.8–3.12. It depends on Django, cryptography, and django-appconf for configuration. The implementation uses symmetric encryption for bi-directional data access, meaning you can encrypt and decrypt the same field value. However, the project is dormant as of June 2024 with no recent commits, though it remains unarchived and has no known security vulnerabilities. Use it for: - Store personally identifiable information (PII) like email addresses or phone numbers encrypted at rest in a Django database. - Protect sensitive business data such as API keys or payment tokens in model fields without application-level encryption logic. - Replace Django's default cryptographic backend with cryptography library's implementation for stronger or more modern algorithms. - Encrypt user-submitted form data before persisting it to the database in a Django application. - Comply with data protection regulations by encrypting regulated fields automatically on save. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Encrypts and decrypts data in Django models using the cryptography library, providing a drop-in replacement for Django's own cryptographic primitives with symmetric encryption for database fields. Yes, with caution. The package is straightforward to install and use, has no known vulnerabilities, and solves a real problem—transparent field-level encryption in Django. However, its Pre-Alpha status and dormant maintenance (no commits since June 2024) mean you should verify it works with your exact Django and Python versions before committing to production. It is suitable for new projects or low-risk deployments where you can tolerate a lack of active support. ## Install pip install django-cryptography-django5 uv add django-cryptography-django5 poetry add django-cryptography-django5 ## Installing django-cryptography-django5 Before you install: Low install friction with a pure-Python wheel. Maintenance is dormant—last release was 2024-06-04 with no commits since then—but the package is not archived and carries no known vulnerabilities. License in practice: BSD-3-Clause is permissive; you may use, modify, and distribute this package freely in commercial or private projects provided you include the license text and do not claim authorship. Quickstart: pip install django-cryptography-django5 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, or 5.0 and cryptography 2.0 or later; Python 3.8 or higher. Verify before relying: - Whether the package's Pre-Alpha status reflects active development or abandoned state. - Whether bi-directional encryption supports queryable lookups or only full-field retrieval. - Performance characteristics when encrypting large text fields or many records. ## Package facts - License: BSD-3-Clause (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 500.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django field encryption, encrypt django model fields, symmetric encryption django, django database encryption, cryptography django wrapper, django sensitive data protection, encrypted django charfield, django-orm, field-encryption, data-protection [View on SkillFed](https://skillfed.io/packages/django-cryptography-django5) · [View on PyPI](https://pypi.org/project/django-cryptography-django5/)