Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

encrypted_json_field-1.1.4.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

encrypted_json_field-1.1.4-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page