It's similar in functionality as the gist and the previous script, but on the MicroOS, where I work now, it is essential to install as few as possible additional software, so Guile is certainly too much.
gpg-agent, you can
set it as the
pinentry-program in the
~/.gnupg/gpg-agent.conf. Note that you need to use the full
path to the binary.
For example for Arch Linux this would be:
Don't forget to restart
gpg-agent for the changes to take
gpg-connect-agent reloadagent /bye