Encrypt files and folders with someone's key or a password.
An open .bge format — RSA-4096 + AES-256-GCM, no servers, no lock-in.
bge is the command-line companion to the dotbge apps for macOS and
iOS. Same files, same keys, same open format — now in your terminal and your scripts.
Homebrew (recommended):
brew install --cask dotbge/tap/bgeOr download a signed, notarized build from Releases:
bge-<version>.pkg— double-click to installbge(+ man page) into/usr/local/bin.bge-<version>-macos-universal.zip— the standalone universal binary.
Either way it's a universal binary (Apple Silicon and Intel), signed with an Apple Developer ID and notarized, so it runs without Gatekeeper warnings.
bge --version
man bgeDownload the tarball for your architecture from Releases, then
put bge on your PATH:
tar xzf bge-<version>-linux-x86_64.tar.gz # or -aarch64
sudo install bge-<version>-linux-x86_64/bge /usr/local/bin/bge
bge --versionThe Linux binary statically links the Swift runtime, so it runs on any recent glibc-based
distro — no Swift install required. Verify with sha256sum -c SHA256SUMS-linux.
# 1. Make an identity key pair
bge keygen -o alice # → alice.pem (private) + alice.pub.pem
# 2. Encrypt for someone — only their private key can open it
bge encrypt report.pdf -r alice.pub.pem # → report.pdf.bge
# 3. Decrypt with your private key
bge decrypt report.pdf.bge -k alice.pem # → report.pdf
# Prefer a password? Skip the keys entirely
bge encrypt report.pdf -p # prompts for a passphrase
# Peek at a .bge without decrypting it (add -k/-p to reveal the original filename & type)
bge inspect report.pdf.bge
# Hand out your public key as a contact card the dotbge apps import
bge card alice.pub.pem -n "Alice" # → Alice.bgekeyRun bge -h, or bge <command> -h, for every option. enc / dec are aliases for
encrypt / decrypt.
- Two ways to lock a file — to a person (RSA-4096 identity) or a passphrase (PBKDF2-SHA512). Either way, content is sealed with AES-256-GCM.
- Files and folders — a single file, a mirrored tree of
.bgefiles, or one zipped archive (-a). - Interops with the apps —
.bgefiles and.bgekeyidentity cards round-trip with the dotbge apps for macOS & iOS. - Built for scripts — stdin/stdout piping (
-),--password-stdin, and distinctsysexitsexit codes.
bge writes the open BGE v3 format — documented, with test vectors, at
dotbge/bge-format. No proprietary container, no
server, nothing to lock you in.
shasum -a 256 -c SHA256SUMS© dotbge · dotbge.com