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
Built Distribution
Close
Hashes for Django-CryptographicFields-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9278ad00eb7c1f046446b138545a578a413dafa3378583d5f373b9fdeddfd037 |
|
MD5 | b6e216c384c103914ad829c37abb5287 |
|
BLAKE2b-256 | 2d1f50a0575ae1d81bc2ec8174b33b04c0b3419266b285b514113d4e6fbe79aa |
Close
Hashes for Django_CryptographicFields-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78c97c339768c4073a4ff029fd0bcc968ec787a5489ad36fa950d3cb44fba6bf |
|
MD5 | cbb11f8fdf9b950f7595df06a9698fc6 |
|
BLAKE2b-256 | 6edf0d4fc4aaf142ca7e762402e4b07574f9f335092aba4967aaa55df8822fc8 |