A terminal UI for GnuPG (gpg) that shells out to the system gpg binary.
- Go 1.22+ (for building)
gpginstalled (GPGTools orbrew install gnupg)- macOS is the primary target; the code is written to be portable, but some workflows (like pinentry UX) depend on your
gpgsetup.
go build -o ezgpg ./cmd/ezgpg
./ezgpgIf you hit a Go build cache permissions error, set a local cache:
mkdir -p .gocache .gomodcache
GOCACHE="$PWD/.gocache" GOMODCACHE="$PWD/.gomodcache" go build -o ezgpg ./cmd/ezgpgThis project is already laid out in a way that works well for a Homebrew formula:
- build:
go build -o ezgpg ./cmd/ezgpg - install:
bin.install "ezgpg" - runtime dependency:
gnupg(forgpg)
- Override the detected gpg path with
EZGPG_GPG_PATH=/path/to/gpg(or the legacyEASYPGP_GPG_PATH). - Trust prompts: if
gpgrefuses to encrypt due to trust confirmation (and tries to open/dev/tty), the CLI will ask you and re-run with--trust-model always.
