Skip to content

Installation

GitHub →

The CLI is one binary, mdstn-cipher. SQLite is embedded, so there is no database to install.

Homebrew (macOS and Linux)

brew install madstone-tech/tap/mdstn-cipher
mdstn-cipher --version

go install

Requires Go 1.27.1 or later.

go install github.com/madstone-tech/cipher-core/cmd/mdstn-cipher@v0.5.1

Release archives

The releases page has archives for Linux, macOS (including a universal binary) and Windows, on amd64 and arm64. Each release also ships a checksums file, an SBOM, keyless cosign signatures (.sigstore.json bundles) and SLSA build provenance. Check the archive against the checksums file before you install it.

Container image

The multi-arch image ghcr.io/madstone-tech/mdstn-cipher-core runs mdstn-cipher as its entrypoint. Mount the folder that holds your files, and run as your own user so the output files belong to you:

docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp \
  -v "$PWD:/work" -w /work \
  ghcr.io/madstone-tech/mdstn-cipher-core:v0.5.1 \
  encrypt secret.pdf --password-file pw.txt

The key database lives under $HOME/.mdstn/ inside the container. With HOME=/tmp it disappears when the container exits, which is fine for file-password encryption. To keep keys between runs, mount a folder for them and point --db at it.

Files and defaults

PathHolds
~/.mdstn/cipher.dbThe key database (override with --db)
~/.mdstn/cipher.tomlOptional configuration (override with --config)
~/.mdstn/backups/Backups written by mdstn-cipher backup

Shell completion

mdstn-cipher completion zsh > "${fpath[1]}/_cipher"
mdstn-cipher completion bash > /etc/bash_completion.d/cipher
mdstn-cipher completion fish > ~/.config/fish/completions/cipher.fish