🍺 BREW Explorer

← all formulae

pinentry-mac

brew install pinentry-mac v1.3.1.1 GPL-2.0-or-later AND GPL-3.0-or-later

macOS GUI passphrase dialog for GPG that integrates with the Assuan protocol via libassuan.

Why you might care

GPG on Mac needs a way to prompt for passphrases securely outside the terminal; pinentry-mac provides a native Cocoa dialog that integrates seamlessly with GPG and other Assuan-based tools. It's the standard pinentry backend for GPG on macOS and avoids TTY-only or X11 dependencies.

Categories

Alternatives

pinentry-curses pinentry-gtk2 pinentry-qt gpg-agent
2.2k
30-day installs · #941
6.2k
90-day · #1001
26.8k
365-day · #935
226
★ GitHub stars · updated 1y ago

Runtime dependencies

Build dependencies

Links

Caveats

You can now set this as your pinentry program like

~/.gnupg/gpg-agent.conf
    pinentry-program $HOMEBREW_PREFIX/bin/pinentry-mac

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "pinentry-curses",
    "pinentry-gtk2",
    "pinentry-qt",
    "gpg-agent"
  ],
  "build_dependencies": [
    "autoconf",
    "automake",
    "gettext",
    "libtool"
  ],
  "categories": [
    "security",
    "gpg",
    "password-manager"
  ],
  "caveats": "You can now set this as your pinentry program like\n\n~/.gnupg/gpg-agent.conf\n    pinentry-program $HOMEBREW_PREFIX/bin/pinentry-mac\n",
  "conflicts_with": [],
  "dependencies": [
    "libassuan",
    "libgpg-error"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Pinentry for GPG on Mac",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:41:12+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "pinentry-mac",
  "github_default_branch": "master",
  "github_last_commit_at": "2025-04-02T08:38:28Z",
  "github_readme_excerpt": "PINEntry\n---------\n\nThis is a collection of PIN or passphrase entry dialogs which\nutilize the Assuan protocol as specified in the Libassuan manual.\n\nThere are programs for different toolkits available.  For all GUIs it\nis automatically detected which modules can be built, but it can also\nbe requested explicitly.\n\nGUI\t\tOPTION\t\t\t DEPENDENCIES\n--------------------------------------------------------------------------\nGTK+ V2.0\t--enable-pinentry-gtk2\t Gimp Toolkit Library, Version 2.0\n\t\t\t\t\t eg. libgtk-x11-2.0 and libglib-2.0\nGNOME           --enable-pinentry-gnome  GNOME\nQt\t\t--enable-pinentry-qt\t Qt (\u003e 4.4.0)\nTQt\t\t--enable-pinentry-tqt\t Trinity Qt\nEnlightenment\t--enable-pinentry-efl\t EFL (\u003e= 1.18)\nFLTK\t\t--enable-pinentry-fltk\t Fast Light Toolkit (\u003e= 1.3)\nCurses\t\t--enable-pinentry-curses Curses library, for example ncurses\nTTY\t\t--enable-pinentry-tty\t Simple TTY version, no dependencies\n\nThe GTK+, GNOME, and Qt pinentries can fall back to curses mode.  The\noption to enable this is --enable-fallback-curses, but this is also\ndetected automatically in the same way --enable-pinentry-curses is.\nThe fallback to curses also works if --disable-pinentry-curses is\nspecified.  So to disable linking to curses completely you have to\npass --disable-fallback-curses to the configure script as well.\n\nExamples:\n* To only build the GTK+ pinentry with curses support:\n./configure --enable-pinentry-gtk2 --enable-fallback-curses \\\n\t--disable-pinentry-curses --disable-pinentry-qt\n\n* To build the Qt pinentry, and the other pinentries if they are\n  supported:\n./configure --enable-pinentry-qt\n\n* To build everything that is supported (complete auto-detection):\n./configure\n\nSome of the code is taken from Robert Bihlmeyer\u0027s Quintuple-Agent.\nFor security reasons, all internationalization has been removed.  The\nclient is expected to tell the PIN entry the text strings to be\ndisplayed.\n\n\nCurses Pinentry\n---------------\n\nThe curses pinentry supports colors if the terminal does.  The colors\ncan be specifie",
  "github_repo": "GPGTools/pinentry",
  "github_stars": 226,
  "github_topics": [],
  "homepage": "https://github.com/GPGTools/pinentry",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 2172,
  "installs_365d": 26834,
  "installs_90d": 6207,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-2.0-or-later AND GPL-3.0-or-later",
  "llm_generated_at": "2026-06-20T23:48:02+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "pinentry-mac",
  "oldnames": [],
  "one_liner": "macOS GUI passphrase dialog for GPG that integrates with the Assuan protocol via libassuan.",
  "optional_dependencies": [],
  "rank_30d": 941,
  "rank_365d": 935,
  "rank_90d": 1001,
  "raw_hash": "0c023bc7ee961796",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/p/pinentry-mac.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.3.1.1",
  "versioned_formulae": [],
  "why_use_this": "GPG on Mac needs a way to prompt for passphrases securely outside the terminal; pinentry-mac provides a native Cocoa dialog that integrates seamlessly with GPG and other Assuan-based tools. It\u0027s the standard pinentry backend for GPG on macOS and avoids TTY-only or X11 dependencies."
}