MkDocs Placeholder Plugin
This plugin allows you to store sensitive information in encrypted form it the source code. When you build the site, it is decrypted using a key you pass as an enviroment variable. This means only people with the key or access to the deployed website can access the information. It also prevents code scanning tools from checking the data you store encrypted.
Installation and usage
Installation and usage is described in more detail in docs/usage.md.
The quick summary is:
- Install it with pip:
mkdocs-encrypt-source-plugin
- Add
encrypt-sourceto thepluginslist inmkdocs.yml. - Generate an encryption/decryption key:
echo -n | mkdocs-encrypt-source-cli -e -k "" >/dev/null
And export the generated key as environment variable:export MKDOCS_ENCRYPT_SOURCE_KEY='WCFY7FJ2TlpXIG0nEqpSltXTAYB9gO3Ob6tS-psY9-s='
- Encrypt all values you want to encrypt with:
echo -n "Value to encrypt" | mkdocs-encrypt-source-cli -e
and put the output in your Markdown source files. - Build the page with
mkdocs serveand check that all encrypted values are correctly decrypted.
Metadata
Release files for mkdocs-encrypt-source-plugin 0.0.1
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 |
|---|---|---|---|---|
| mkdocs_encrypt_source_plugin-0.0.1.tar.gz | 5.4 kB | Without provenance | Details for mkdocs_encrypt_source_plugin-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_encrypt_source_plugin-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_encrypt_source_plugin-0.0.1-py3-none-any.whl |
Total release size: 12.1 kB
Release files / mkdocs_encrypt_source_plugin-0.0.1.tar.gz
| Download URL | mkdocs_encrypt_source_plugin-0.0.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
511e58e72a5501b0aadaa8f8246d4f207798093f77ab577a0d4077d3809936e9
|
|
BLAKE2b-256 checksum How to use checksums |
9a541fa3d9e15185a707456214181fee38817e1ab393dc9538661f92de48684c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|
Release files / mkdocs_encrypt_source_plugin-0.0.1-py3-none-any.whl
| Download URL | mkdocs_encrypt_source_plugin-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b27ee5878177481e1cd4ab4c6be6d5e038999631d9fb59516dbf9286d489f688
|
|
BLAKE2b-256 checksum How to use checksums |
6f72777da7d1b1f0403b2e5ced22ac8159865c9872885690e80c1a5f91cd4396
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|
Security for mkdocs-encrypt-source-plugin 0.0.1
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.