mirror of
https://github.com/jazzband/django-fernet-encrypted-fields.git
synced 2026-03-16 22:40:27 +00:00
No description
| encrypted_fields | ||
| package_test | ||
| .gitignore | ||
| .travis.yml | ||
| LICENCE.txt | ||
| manage.py | ||
| README.md | ||
| requirements.txt | ||
| setup.py | ||
Django Fernet Encrypted Fields
This package was created as a successor to django-encrypted-fields.
Getting Started
$ pip install django-fernet-encrypted-fields
In your settings.py, set random SALT_KEY
SALT_KEY = '0123456789abcdefghijklmnopqrstuvwxyz'
Then, in models.py
from encrypted_fields.fields import EncryptedTextField
class MyModel(models.Model):
text_field = EncryptedTextField()
Use your model as normal and your data will be encrypted in the database.
Available Fields
Currently build in and unit-tested fields. They have the same APIs as their non-encrypted counterparts.
EncryptedCharFieldEncryptedTextFieldEncryptedDateTimeFieldEncryptedIntegerFieldEncryptedFloatFieldEncryptedEmailFieldEncryptedBooleanField
Compatible Django Version
| Compatible Django Version | Specifically tested |
|---|---|
2.2 |
✔️ |
3.0 |
✔️ |
3.1 |
✔️ |
3.2 |
✔️ |
4.0 |
✔️ |

