Developers

Send secrets from your terminal, your code and your pipelines

Everything the website does, without the browser. Secrets are encrypted on your side before they leave, so Burn the Secret only ever stores ciphertext. The recipient just opens the link.

bash · try it now, no install or account
printf '%s' "hunter2" | npx burnthesecret@0.1.1
# https://burnthesecret.com/secret/K7fq…#key=…

Pick your integration

API keys are optional

You can create secrets anonymously from the CLI or the API. Add a free API key when you want secrets to show up in your account and to get the higher signed-in limits (larger secrets, longer expiry, more views).

  1. Create a free account or log in.
  2. Open API Access and create a key. It starts with bts_live_ (older keys start with ks_live_ and still work) and is shown once.
  3. Export it as BURNTHESECRET_API_KEY. The CLI picks it up automatically. For the API, send it as a Bearer token.
bash
export BURNTHESECRET_API_KEY="bts_live_…"

# CLI: picked up from the environment
printf '%s' "$DB_PASSWORD" | npx burnthesecret@0.1.1

# API: Bearer token
curl -H "Authorization: Bearer $BURNTHESECRET_API_KEY" …

The same zero-knowledge model everywhere

  1. 01

    Encrypt locally

    A random 256-bit key encrypts the secret with AES-256-GCM on your machine.

  2. 02

    Upload ciphertext

    Only the ciphertext and IV are sent, with the expiry and view limit.

  3. 03

    Key stays in the link

    The key goes in the #key= fragment, which browsers never send to a server.

  4. 04

    Read once, then gone

    The recipient's browser decrypts it. At the view limit or expiry, the ciphertext is deleted.

Links from the CLI and the API open in any browser, exactly like links made on the website. Details are in the encryption section of the API reference.

Further reading

Building something with Burn the Secret, or missing an integration you need? Tell us.