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.
Metadata
Release files for encrypted-json-field 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| encrypted_json_field-1.1.4.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| encrypted_json_field-1.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / encrypted_json_field-1.1.4.tar.gz
| Download URL | encrypted_json_field-1.1.4.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11c280ae46d714d64395e55f7653504697be21b23ec46a246bb37a2da13bf1b9
|
|
BLAKE2b-256 checksum How to use checksums |
29a5bdd1b8f230bd3d1d1e55d93ee24324378932f745a2d0876a1c25e47c3949
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / encrypted_json_field-1.1.4-py3-none-any.whl
| Download URL | encrypted_json_field-1.1.4-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b56fe406480729a57f60c68a814824ef720735da3a737f62137a0f6f0bd53737
|
|
BLAKE2b-256 checksum How to use checksums |
99e9df069059963a5eba370d2b5ba036ac9da75fa8ac4037b471cd5c267ad26b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|