Encrypted JSON field supports automatic encryption/ decryption of JSON fields with padding to conceal start and end of value.
Project description
Encrypted JSON Field
Encrypted JSON field supports automatic encryption/ decryption of JSON fields with padding to conceal start and end of value.
Setup
Nothing really to setup, just import the field and get to work.
You could, however, setup an optional variable in your django settings named ENCRYPTED_JSON_FIELD_SECRET
(It should be 16 chars minimum) which will be used to encrypt/ decrypt
the data of your fields. The default behaviour uses the first 16 characters of SECRET_KEY
(Block size).
Example:
from encrypted_json_field import EncryptedJSONField
from django.db import models
class Company(models.Model):
name = models.CharField(max_length=32)
config = EncryptedJSONField(blank=True)
Support
This supports Python >= 3.8 and Django >= 4.2. If you need to support other versions, please create an issue.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file encrypted_json_field-1.1.4.tar.gz
.
File metadata
- Download URL: encrypted_json_field-1.1.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11c280ae46d714d64395e55f7653504697be21b23ec46a246bb37a2da13bf1b9 |
|
MD5 | fae3b2c0e5ad19d991d0e3c5a7c3dbf4 |
|
BLAKE2b-256 | 29a5bdd1b8f230bd3d1d1e55d93ee24324378932f745a2d0876a1c25e47c3949 |
File details
Details for the file encrypted_json_field-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: encrypted_json_field-1.1.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b56fe406480729a57f60c68a814824ef720735da3a737f62137a0f6f0bd53737 |
|
MD5 | ab5d2db74a5066cc762eae872f3c6380 |
|
BLAKE2b-256 | 99e9df069059963a5eba370d2b5ba036ac9da75fa8ac4037b471cd5c267ad26b |