Crypto Middleware for DjangoRestFramework
Project description
Crypto Middleware for DjangoRestFramework
Installation
python3 -m pip install django_rest_crypto
Usage
# settings.py
MIDDLEWARES += [
'django_rest_crypto.middlewares.EncryptData',
]
ENCRYPT_KEY = b'1234567890ABCDE' # 16, 24 or 32 bytes, required
ENCRYPT_MODE = 'CBC' # default
ENCRYPT_IV = b'1234567890ABCDE' # optional
ENCRYPT_NONCE = b'1234567890ABCDE' # optional
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file django_rest_crypto-1.0.0.tar.gz
.
File metadata
- Download URL: django_rest_crypto-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1368b3a7c62730857a63f8e1ddce7e66a9634f58344f701d36c304e6a13abe9e |
|
MD5 | 78ac07be569e0e944be1d0cdb9d3c409 |
|
BLAKE2b-256 | 84463ad4ef98de9f306f85ba11795160f441c74fa01700871f390049f0525c38 |
File details
Details for the file django_rest_crypto-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_rest_crypto-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f35e65bdd2a31c75f5fe34d07937a1d40aa43584fbc8af01a34fa86d0e862760 |
|
MD5 | 76a97eb59af822617fd924cba65ca23f |
|
BLAKE2b-256 | 49791b8a4402353671ae49fcac8d88e00a15060ab507b6a0094ea8f0c8ce092a |