This is inspired by django-encrypted-fields.
Project description
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.
EncryptedCharField
EncryptedTextField
EncryptedDateTimeField
EncryptedIntegerField
EncryptedFloatField
EncryptedEmailField
EncryptedBooleanField
Compatible Django Version
Compatible Django Version | Specifically tested |
---|---|
2.2 |
:heavy_check_mark: |
3.0 |
:heavy_check_mark: |
3.1 |
:heavy_check_mark: |
3.2 |
:heavy_check_mark: |
4.0 |
:heavy_check_mark: |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-fernet-encrypted-fields-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8465aad75b1d3e845678bef94cb92d0fa296c9839043b5e21c44242f0351847 |
|
MD5 | def241d7fcf696c951f6262fd8335e6e |
|
BLAKE2b-256 | 6025a784137375c5efcc8fbf3ee66059ed45aa50be473a61c555a16e092c54cf |
Close
Hashes for django_fernet_encrypted_fields-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190f9d411f299293d586157c7c858605f2d72b80c5602afce08e8af71b1342f4 |
|
MD5 | f7b436ad76035ce78a4f14b0cbc98cc6 |
|
BLAKE2b-256 | d308b0590af38f1323995e27fbd9ea2025e71be67d02e161add06f5e2434acc7 |