sage (Simple GUI for age) is a small and portable Windows app for encrypting and decrypting files with age, a secure encryption tool and Go library.
- Portable: one exe, nothing to install. Copy
sage.exeanywhere (a USB stick works) and run it. The official age library (filippo.io/age) is built in, so sage doesn't callage.exeand needs no plugins. - For Windows 10 and 11, x64 (amd64) and ARM64. Download the zip for your PC from Releases.
- Not on Windows? Use wsage in your browser. wsage is sage's web version: it encrypts and decrypts age files and text right in the browser on any platform (Windows, macOS, Linux, Android, iOS), with nothing uploaded. Passphrases and age keys; no SSH keys. Source: github.com/t0ma5/wsage.
- Drop files, type a passphrase or pick keys, done. Output goes next to each file and never overwrites an existing one.
- Compatible with age. Files sage encrypts open with the
agecommand-line tool and any other age implementation, and the other way round (checked by the test suite againstage.exe).
sage is unofficial and not affiliated with age's authors.
- Start
sage.exe. - Add files: drop files or folders on the file list, or use the green Files / Folder buttons. Each addition joins the list (name, folder, size); duplicates are skipped, and × removes a file. A folder adds the files directly inside it; the line under the list says how many subfolders were left out, and which paths couldn't be read and why.
- Choose a tab, Passphrase or Keys, and fill it in.
- Click the button at the bottom right (Encrypt 3 files, Decrypt 1 file, ...) or press Enter in a passphrase field.
The line next to the button always says what is missing ("Repeat the passphrase to confirm it.", "Add an identity file under 'Decrypt with'."). After a run, each file's row shows its result: a check mark and the file written (with a button that shows it in its folder), or what went wrong. Finished files stay in the list for reference but aren't processed again; failed ones are retried by the next run.
Encrypt or decrypt is chosen by the files: .age files are decrypted, everything else is encrypted. If you add both kinds, only the .age files are kept.
For files protected with a passphrase (age -p). Encrypting asks for it twice; the eye button reveals it. Generate a strong passphrase fills in a random one (six groups of five characters, 35 with the dashes, about 148 bits) and shows it, so you can copy it somewhere safe. A passphrase containing a line break (usually from pasting) is refused. A wrong passphrase on the first file stops the batch, because every further file would fail the same way after another slow key derivation; files that failed or weren't processed stay in the list for a retry.
- Encrypt to: public keys, one per line: age keys (
age1...), post-quantum age keys (age1pq1...), tagged keys, or SSH keys (ssh-ed25519 ...,ssh-rsa ...).#starts a comment. And/or a recipients file. Everyone listed can decrypt the file. - Decrypt with: identity (secret key) files, one path per line: age identity files or unencrypted SSH private keys.
- Generate new key pair writes a new identity file (classic or post-quantum) to a folder you choose, as
age-key.txtorage-key (1).txt, and adds it to the boxes. Keep that file secret and backed up: without it, files encrypted to its public key can't be decrypted.
Encryption is blocked, with the reason, instead of producing a file someone can't open: a line that isn't a usable key (with its line number), a missing recipients file, a secret key pasted where a public key belongs, an SSH key type age can't encrypt to, or post-quantum and classic keys mixed in one file (age refuses that: the classic key would make the file breakable by a quantum computer).
Not supported yet: age plugins (e.g. YubiKey), and passphrase-protected identity files or SSH keys.
- Encrypt adds
.age, decrypt removes it. Existing files are never overwritten: a taken name becomesname (1).ext(archive (1).tar.gz,.gitignore (1)). - Each file is written as
name.partfirst and renamed only when it finished correctly. A failed or cancelled file leaves nothing behind; a crash leaves an obvious.partfile, never a truncated file under the real name. - Works on virtual drives such as a mounted Cryptomator vault, and in folders with paths over 260 characters.
- Cancel stops the current file and removes its partial output. Inspect shows what an
.agefile is encrypted to and whether it is post-quantum, without decrypting it. - The (i) button shows the version and links to this repository and to age.
- Started as administrator (for example from a search tool that runs elevated), sage says so in a dialog and keeps an amber Admin pill in the toolbar: Windows then hides drives mapped by your normal account, such as Cryptomator vaults, and blocks drag and drop from Explorer.
- ASCII armor: text output instead of binary, for e-mail or chat.
- Settings are saved in
sageSettings.jsonnext tosage.exe. Only recipients, comments and paths are stored; secret keys, pasted private keys and other stray text never are. A damaged settings file is kept assageSettings.json.badand reported.
sage opens with any files passed on its command line, so it works from Explorer's Send to menu: press Win+R, type shell:sendto, and put a shortcut to sage.exe in the folder that opens.
Requirements: Go 1.26+, Node.js, and the Wails v3 CLI:
go install github.com/wailsapp/wails/v3/cmd/wails3@v3.1.0
Build (the exe lands in bin\sage.exe):
wails3 task windows:build ARCH=arm64
wails3 task windows:build ARCH=amd64
ARCH defaults to the Go toolchain's own architecture. sage is pure Go (no cgo), so both architectures build from either machine. It uses the WebView2 runtime that is part of Windows 10 and 11.
Releases are built by GitHub Actions (.github/workflows/release.yml) when a version tag is pushed (git tag v0.1.0, git push origin v0.1.0). It builds both architectures on one Windows runner, runs the tests (including interop with the official age.exe, checksum pinned), and attaches sage-<version>-windows-amd64.zip, ...-arm64.zip and SHA256SUMS.txt to a draft release for you to review and publish. Each zip carries a build provenance attestation: gh attestation verify <zip> --repo t0ma5/sage. The tag must match appTitle in service.go.
go test ./...
The tests cover passphrase and key round trips, armor, SSH keys, output naming and the never-overwrite rule, cleanup after wrong passphrases, cancels and damaged input, long paths, recipient and settings checks, and the batch runner. The interop tests encrypt with sage and decrypt with the official age.exe and vice versa; they use age.exe from PATH, or point SAGE_TEST_AGE at one (and keep age-plugin-batchpass.exe next to it). They are skipped when it is missing, unless SAGE_REQUIRE_INTEROP=1 is set.
| Path | What |
|---|---|
core.go |
Encryption core: key parsing (mirrors the age CLI), output naming, .part files, one file at a time. No GUI code. |
service.go |
What the window calls: status and hints, the batch runner, settings, dialogs, key generation, Inspect. |
main.go |
Window and app setup. |
rename_windows.go |
Rename that never replaces a file, with long-path support. |
frontend/ |
The window: index.html, src/main.ts, src/style.css. |
*_test.go |
Tests. |
- age by Filippo Valsorda and Ben Cartwright-Cox; sage uses its Go library, filippo.io/age (BSD-3-Clause).
- Wails for the window.
- Cover photo by Paulina S. on Unsplash.
BSD-3-Clause, see LICENSE. The release zips also contain THIRD_PARTY_LICENSES.txt with the licences of the Go standard library and the modules built into sage.exe (age, Wails, ...).



