Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_rest_crypto-1.0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

django_rest_crypto-1.0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page