Skip to main content

A Django app for cryptography in Django Models.

Project description

Django-CryptographicFields

A Django app for using cryptography in Django Models. It support bi-directional cryptography

Quick start

1. Add "CryptographicFields" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'CryptographicFields',
    ]

Creating Models using CryptographicFields

Cryptography by example

from CrptographicFields import fields
from django.db import models

class CryptogaphicModel(models.Model):
    name=fields.CharField(max_length=120)

The data will now be automatically encrypted when saved to the database. encrypt uses an encryption that allows for bi-directional data retrieval.

Requirements

  • Python (3.6+)
  • Pycryptodome (3.9+)
  • Django (3.0+)

List of Model Fields supported by CryptographicFields:

  • BigIntegerField
  • BooleanField
  • CharField
  • DecimalField
  • EmailField
  • FilePathField
  • FloatField
  • IntegerField
  • GenericIPAddressField
  • PositiveBigIntegerField
  • PositiveIntegerField
  • PositiveSmallIntegerField
  • SlugField
  • SmallIntegerField
  • TextField
  • URLField

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

Django-CryptographicFields-1.1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

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