Skip to main content

secret_paste

The pages around a self-hosted, zero-knowledge secret paste (PrivateBin), rendered per site from one source.

secret-paste explainer site.toml -o frontend/index.html
secret-paste privatebin-template site.toml -o server/secretpaste.php

site.toml holds what differs between sites:

operator = "Ada Lovelace"
site = "example.org"
paste_url = "https://secrets.apps.example.org/"     # where PrivateBin answers; its own host is best
explainer_url = "https://apps.example.org/secrets/" # where the explainer is served
voice = "I"                                          # "we" for a team
signin_phrase = "a sign-in"                          # "Creating a paste needs <this>"
brand = ""                                           # optional prefix in the page's kicker
og_image = ""                                        # optional social-card image URL

What you get

  • The explainer (explainer): one self-contained HTML page, no external loads. How the key stays in the link's #fragment and never reaches the server, an animated walk-through, a live in-page demo with the browser's Web Crypto, an honest threat model (a compromised server defeats it), and what the service stores and for how long.
  • The paste-page link (privatebin-template): a PrivateBin template that includes upstream's bootstrap5.php unchanged and adds one "How this works" link near the top of the page. Mount it read-only at /srv/tpl/secretpaste.php in the official privatebin/nginx-fpm-alpine image and set template = "secretpaste" in conf.php. No fork: an image bump keeps upstream's page; if upstream ever renames the anchor, the page is served without the link rather than broken.

Keeping copies current

A platform that commits the rendered files can check them in its tests:

secret-paste explainer site.toml -o frontend/index.html --check   # exit 1 when stale

or from Python:

from secret_paste import Site, render_explainer

assert Path("frontend/index.html").read_text() == render_explainer(
    Site.from_mapping(tomllib.load(f))
)

Metadata

Release files for secret_paste 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for secret_paste 0.0.4
File Size Uploaded Provenance Actions
secret_paste-0.0.4.tar.gz 19.1 kB Without provenance Details for secret_paste-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for secret_paste 0.0.4
File Interpreter ABI Platform Actions
secret_paste-0.0.4-py3-none-any.whl Python 3 none any Details for secret_paste-0.0.4-py3-none-any.whl

Total release size: 38.8 kB

Release files / secret_paste-0.0.4.tar.gz

Download URL secret_paste-0.0.4.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2b60f0ed32e307c2cce943f88562c29e647c55ceb6e008c06385089f9ee24466
BLAKE2b-256 checksum
How to use checksums
4d2078c349629d6088f21bada3427dd40ba1ea7df2cc2656b84653ec30dd04ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / secret_paste-0.0.4-py3-none-any.whl

Download URL secret_paste-0.0.4-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecf16c7bb9ca3c1005f340712fa93db932db3d6d4dbe4582291743391328ecb9
BLAKE2b-256 checksum
How to use checksums
71b859017aa144bbf6ec708d14ca9a19369cf1c4bdb4fa3830c2837071d7a42a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for secret_paste 0.0.4

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.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files No provenance

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