Crypto Middleware for DjangoRestFramework
Installation
python3 -m pip install django_rest_crypto
Usage
# settings.py
MIDDLEWARES += [
'django_rest_crypto.middlewares.EncryptDataMiddleware',
]
ENCRYPT_KEY = b'1234567890ABCDE' # 16, 24 or 32 bytes, required
ENCRYPT_MODE = 'CBC' # default
ENCRYPT_IV = b'1234567890ABCDE' # optional
ENCRYPT_NONCE = b'1234567890ABCDE' # optional
Metadata
Release files for django-rest-crypto 1.0.2
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_rest_crypto-1.0.2.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_rest_crypto-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / django_rest_crypto-1.0.2.tar.gz
| Download URL | django_rest_crypto-1.0.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de48e9e9ca1dd928450ba0f87b1f0801975667af3c50b70a5aa75794311e3547
|
|
BLAKE2b-256 checksum How to use checksums |
330ee24386f0a67ed22e7095215ff547c90e50ed5c6bfbbbe11ddc83b4da747c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|
Release files / django_rest_crypto-1.0.2-py3-none-any.whl
| Download URL | django_rest_crypto-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acc5208c8e627bf61022bb21015b40f254a43a87d2c9a54d3411a9fb8a5fedba
|
|
BLAKE2b-256 checksum How to use checksums |
3b13c756ea361927ce906d721efcf4f3de74e40936bbbfab7bb5df272849f7da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|