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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django_rest_crypto-1.0.1.tar.gz.

File metadata

  • Download URL: django_rest_crypto-1.0.1.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

Hashes for django_rest_crypto-1.0.1.tar.gz
Algorithm Hash digest
SHA256 31c6ef4ab73ee71368d679d4bb74dbab3d49724923e6ef2937654d0e340ca8c9
MD5 0086ebb9a21ec7e850dbe78eb299900b
BLAKE2b-256 68187e9cf4307a471063c4a830579111d2b18c8fff31e6d0fb2305c77d6d3daf

See more details on using hashes here.

File details

Details for the file django_rest_crypto-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: django_rest_crypto-1.0.1-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

Hashes for django_rest_crypto-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e325c70ee56dbff81049fdcc167526f438700c4297683bb45868cd3a5160ee17
MD5 290f2a0143d343240d7c57d21735acf1
BLAKE2b-256 7b724b3db999d53918ce7236fda6ce76bf6b7e2357dde4a71464dc2f1009302c

See more details on using hashes here.

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