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.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
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
Close
Hashes for django_rest_crypto-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e325c70ee56dbff81049fdcc167526f438700c4297683bb45868cd3a5160ee17 |
|
MD5 | 290f2a0143d343240d7c57d21735acf1 |
|
BLAKE2b-256 | 7b724b3db999d53918ce7236fda6ce76bf6b7e2357dde4a71464dc2f1009302c |