Skip to main content

"Proteted" data types suitable for hiding secrets in Django config files.

Project description


"Protected" data types to hide secrets in Django config files.

Running a Django server in debug mode risks exposing secrets like API
keys and passwords to the world. While Django will "filter out"
certain values, it still makes available the contents of local
variables which might also contain hidden keys.

Protected works by breaking the object's __repr__ method to prevent casual display.

from protected import ProtectedString

>>> print ProtectedString('abc')

>>> print repr(ProtectedString('abc')
<Protected String 'abc'>

Project details

Download files

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

Files for protected, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size protected-0.0.1.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page