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.& decrypted when data is retrieved.

Advantages over other projects:-

  1. Supports data retrival
  2. Supports custom query
  3. Supports Q() queries
  4. Supports 'startswith' lookups for all String Based Fields
  5. Supports 'date' lookup for Date,DateTime Fields
  6. Supports 'time' lookup for TimeField

Requirements

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

List of Model Fields supported by CryptographicFields:

  • BigIntegerField
  • BooleanField
  • BinaryField
  • CharField
  • DateField
  • DateTimeField
  • DecimalField
  • EmailField
  • FilePathField
  • FloatField
  • IntegerField
  • GenericIPAddressField
  • PositiveBigIntegerField
  • PositiveIntegerField
  • PositiveSmallIntegerField
  • SlugField
  • SmallIntegerField
  • TextField
  • URLField
  • UUIDField
  • TimeField

Project details


Download files

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

Files for Django-CryptographicFields, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size Django_CryptographicFields-2.0.0-py3-none-any.whl (7.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Django-CryptographicFields-2.0.0.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page