Skip to main content

MkDocs Placeholder Plugin

PyPI version License Python versions

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:

  1. Install it with pip:
    mkdocs-encrypt-source-plugin
    
  2. Add encrypt-source to the plugins list in mkdocs.yml.
  3. 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='
    
  4. 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.
  5. Build the page with mkdocs serve and 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)

Source distribution for mkdocs-encrypt-source-plugin 0.0.1
File Size Uploaded
mkdocs_encrypt_source_plugin-0.0.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-encrypt-source-plugin 0.0.1
File Interpreter ABI Platform
mkdocs_encrypt_source_plugin-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page