Skip to main content

Hyval

Hyval will store your information encrypted and decrypt it when needed :>

Usage:

instalation:

for install package :

pip install django-hyval

example :

1- in settings.py:

HIDE_MY_VALUE = {
	'salt' : 'test',
	'key': 'test',
	'length' : 32,
	'iteration': 1000,
}

2- in model:

from django.db import models
from hyval import HideMyValue


class TestHyval(models.Model):
    name = models.CharField(max_length=50)
    password = HideMyValue(max_length=32)

then:

action = TestHyval()
action.name = "test"
action.password = "test"
action.save()

Now your 'password' field on database stored with encryption so to retrieve value :

my_model = TestHyval.objects.get(pk=1)
my_model.password
>>> 'test'

mistake

there was mistake by me , so i deleted 'repository' and '.git' folder anciently, so there isn't any commit about past.

Release files for django-hyval 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-hyval 1.0.1
File Size Uploaded
django-hyval-1.0.1.tar.gz 3.4 kB Details

Release files / django-hyval-1.0.1.tar.gz

Download URL django-hyval-1.0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6e4f0fa24174ba3dea2d3c96744befe2b8f205862dd53827aab62ab6e4f771b5
BLAKE2b-256 checksum
How to use checksums
a19ea8b3e6dd91dbd79dab3a291f2b42e518e355511426b98e3b9d027ecfe81b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page