django-cryptography provides encryption for Django model fields using AES. Current version 2.0.3, with a focus on simplicity and Django ORM integration. Release cadence is low; maintained by saaspegasus.
pip install django-cryptographyVerified import paths — ran on the pinned version, not inferred.
Define an encrypted char field in a Django model.
Do not use encrypted fields in `filter()`, `order_by()`, or indexing. Consider using a non-encrypted field or hashing for lookups.
Back up existing data before changing SECRET_KEY. Implement manual re-encryption if key rotation is needed.
Update imports to `from django_cryptography.fields import ...`