Interface for storing arbitray python objects. Uses a user's
password as the cypher to store an object in TextField.
Object must be able to be pickeled. Authentication is done by
using django authenitication module.
Models.py
Methods Prototypes
def set(self, user, password, obj):
'''
Setting an encrypted string. Password must be the
user's password. Can encrypt a object that can be
pickeled.
'''
return 0 # Everything ok
def get(self, user, password):
'''
Retreving an encrypted string. Password must be the
user's password. Returns a python object.
'''
return object
password as the cypher to store an object in TextField.
Object must be able to be pickeled. Authentication is done by
using django authenitication module.
Models.py
Methods Prototypes
def set(self, user, password, obj):
'''
Setting an encrypted string. Password must be the
user's password. Can encrypt a object that can be
pickeled.
'''
return 0 # Everything ok
def get(self, user, password):
'''
Retreving an encrypted string. Password must be the
user's password. Returns a python object.
'''
return object
Release files for django-encrypt 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-encrypt-0.1.tar.gz | 8.4 kB | Details |
Release files / django-encrypt-0.1.tar.gz
| Download URL | django-encrypt-0.1.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
698d9f43a717f2c77aa9584d9b7e24ee22267c23b893d514164576844e447749
|
|
BLAKE2b-256 checksum How to use checksums |
458fc9107459839b5341a3ed383260434461380982b899ba99a5ec34381720fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |