Bastion Get Bastion
Encrypted by default · Built with Rust →

Your secrets, locked down.

Bastion is a notepad for the things you can't afford to lose or leak — passwords, recovery codes, account details, private notes. Sort them into folders, write in Markdown and read it rendered. Everything is encrypted before it touches the disk, and only your master password opens it. Keep it on one computer, or sync it across your devices through a server that can't read it.

✓ Local by default, sync if you want ✓ Nothing stored or sent unencrypted ✓ Single native binary
Bastion showing its folder sidebar and a Markdown note rendered with headings, a code block with a copy button, tags and bullet points
Encrypted

Sealed before it's saved

Every note is encrypted in memory and only ciphertext reaches the disk. A stolen laptop, a copied file or a leaked backup gives away nothing but noise.

Private

Yours, and only yours

No telemetry, ever. Keep your vault as a single file that never goes near the network, or sync it through a server that stores only what it can't read.

Recoverable

Forget the password, not the vault

An offsite recovery key and encrypted backups mean a forgotten password or a dead drive doesn't take your notes with it.

Features

A notepad that keeps its mouth shut.

Everything a plain notepad does, with the paranoia built in, so you don't have to think about it.

Markdown, rendered

Write in Markdown and read it like a GitHub README: headings, checklists, tables, and code in framed boxes with syntax colours and a copy button. Links always ask before they open.

Folders you can drag

Keep work, personal and recovery codes apart. Pick a note up and drop it on a folder to file it; folders open, close and reorder the same way.

Icons, colours and tags

Give any note or folder one of nearly a hundred icons and a colour, and tag notes so search finds them. The icons are built in, so choosing one never touches the internet.

Offsite recovery key

Shown once when you create your vault. Print it or put it on a USB stick kept somewhere else. It's your way back in if you forget the password.

Locks itself

Walk away and Bastion locks after the idle time you choose, wiping keys and text from memory. Or hit the orange lock, or Ctrl+L.

A clipboard that cleans up

Copied secrets stay out of Windows clipboard history and cloud sync, and are wiped after 30 seconds, on lock and on exit.

Invisible to screen capture

The window shows up blank in screenshots, screen recordings and Teams or Zoom screen shares, so a stray share never shows your notes.

Encrypted backups

Export a copy to a drive, another PC or the cloud. It stays encrypted wherever it goes and restores in one click from the lock screen.

Notes that save themselves

Search everything with Ctrl+K, and step back and forth through what you've opened. Type and Bastion encrypts and saves a moment after you stop. There's no Save button to forget.

Sync, if you want it

Every device.
Still only yours.

Keep your vault on this computer and Bastion never opens a connection. Or keep it on a Bastion server and have it on your laptop and your desktop alike. The server holds your vault, but it only ever receives ciphertext. It never sees your password, and it can't read a single note.

One password, two keys

Your password is stretched on your device, then split one way into a key that opens the vault and a separate key that signs you in. The server only ever gets the second, and it can't be turned back into the first.

Works offline

Each device keeps an encrypted copy and unlocks from it, with or without a connection. Edits made on a plane go up the next time the server can be reached.

No edit lost

Changes from different devices are merged note by note. If the same note was edited on both, you keep both versions, one marked as a conflicted copy. A delete never wipes out an edit made elsewhere.

No quiet rollbacks

A revision number is sealed inside every copy, where the server can't touch it. A server trying to pass off an older copy of your vault is caught and refused.

A stolen server gives nothing away

Vaults are encrypted a second time on the server, under a key kept outside its database. Even with both, every password guess still costs 512 MiB of Argon2id, just like attacking a vault file.

Run your own

The server is a small Rust program with its database built in. Run it with Docker behind nginx or Caddy on any machine you control.

🦀 Built with Rust

Encryption you
can actually check.

No home-made cryptography and no vague promises. Bastion uses the same well-studied algorithms as modern password managers, and says exactly what they are.

  • 1
    XChaCha20-Poly1305

    Notes are sealed under a random 256-bit key. Change a single bit of the file and Bastion refuses to open it rather than hand back altered text.

  • 2
    Argon2id, 512 MiB per guess

    Your master password is stretched with a memory-hard function, so every guess costs an attacker half a gigabyte of RAM. That's what stops GPU cracking.

  • 3
    Memory-safe Rust

    Buffer overflows and use-after-free bugs are ruled out at compile time, and keys and text are wiped from memory when the vault locks.

  • 4
    Zero-knowledge sync

    HTTPS only. A self-signed server certificate is trusted only once you've checked its fingerprint, and your vault is sealed before it leaves your device. A build without sync has no network code at all.

vault.bastion
{
"format": "bastion-vault",
"kdf": { "algorithm": "argon2id", "m_kib": 524288, … },
"password_slot": { … },
"recovery_slot": { … },
"payload": {
"nonce": "I7jacpDEyF8zXaIFEoq7du9AmfHmq3O0",
"ciphertext": "hP/BsD94OluW7VTFbmzJh+j2x5xQ0cTqAf9LZr2MwBnE7uXk3JdPgVy1oHs8RaCtN6WlIeK5vYbFzUqGm4Dj0SxpLwTnO7Rc…"
}
}
✓ 0 readable words · ✓ tamper-evident

What a thief would find. Illustrative file.

How it works

Locked down in under a minute

01

Choose a home and a password

Keep your vault on this computer, or on a Bastion server to use it on all your devices. Then pick a master password: four or more random words are easy to type and hard to guess. It's never stored anywhere.

02

Store your recovery key

Save the recovery kit to a USB stick or print it, and keep it somewhere other than your computer. It's shown once, then it's yours to keep.

03

Write freely

A welcome note shows you around. Then hit Ctrl+N and start typing. Every change is encrypted and saved automatically, and synced if your vault lives on a server.

Plain about the limits: Bastion protects your notes on disk, on screen and on the way to a server, but no app can protect them from malware already running on your PC while the vault is open. And nobody, not even the server, can reset a forgotten password: lose both it and your recovery key and the vault is gone. Keep your system clean and your recovery key safe.

Keep what matters behind the wall.

Encrypted, private and recoverable, with folders and Markdown to keep it tidy. A single file for Windows 10 and 11, with nothing to install, and an optional sync server you can run anywhere Docker does.