zato-enclog
Encrypted logger which stores everything using Fernet keys (AES128). Safe to use in environments that cannot store Personally Identifiable Information (PII) in clear text, such as HIPAA-compliant applications.
Comes with a command line tool that is used to decrypt logs, including both open and tail -f functionality.
Learn more about Fernet: https://cryptography.io/en/latest/fernet/
# stdlib
import logging
# Zato
from zato.enclog import EncryptedLogFormatter, genkey
level = logging.INFO
format = '%(levelname)s - %(message)s'
key = genkey()
formatter = EncryptedLogFormatter(key, format)
handler = logging.StreamHandler()
handler.setFormatter(formatter)
logger = logging.getLogger('')
logger.addHandler(handler)
logger.setLevel(level)
logger.info(b'{"user":"Jane Xi"}')
# Shows the following
INFO - gAAAAABWYa17oiDoSMVjF8JM9DWzB3dtEvenW9laKqgsFl4d4ksbLCkoJzTyrI3nXKYVOcC03dhJ_BwfWlBN3CdGxJZAwMmfUbUzLHkqw2JeTzdgtz0YEGU=
Metadata
Release files for zato-enclog 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zato-enclog-1.0.7.tar.gz | 4.2 kB | Without provenance | Details for zato-enclog-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zato_enclog-1.0.7-py2-none-any.whl | Python 2 | none | any | Details for zato_enclog-1.0.7-py2-none-any.whl |
Total release size: 11.3 kB
Release files / zato-enclog-1.0.7.tar.gz
| Download URL | zato-enclog-1.0.7.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
771e4d80710ed60602d362ce40def57f5a38960518071afa423202b6cfee2c0e
|
|
BLAKE2b-256 checksum How to use checksums |
c9c81d54ec5b59e629cd96955b442d0aba51ee0210785177b69671dc21592f56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.6
|
Release files / zato_enclog-1.0.7-py2-none-any.whl
| Download URL | zato_enclog-1.0.7-py2-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
fc46154ab860c27d3a9180cf050e35e00dc917904525875a66586c918192c171
|
|
BLAKE2b-256 checksum How to use checksums |
7994c5ec583cda8cfe84cc259a4fc734c867c06c70239d88af32f6a43dce5f2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.6
|
Security for zato-enclog 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.