Secure passphrase entry tool for GPG on macOS
Pinentry for GPG on Mac
pinentry-mac
$ echo 'pinentry-program /usr/local/bin/pinentry-mac' >> ~/.gnupg/gpg-agent.conf
$ gpgconf --kill gpg-agent
$ gpg --sign document.txt