in reply to How can a script use a password without making the password visible?

I would like to add Config::Identity to the mix. It is a front-end for GPG. Both GPG and Config::Identity take a bit of setting up, and in particular you may want to point environment variable CI_GPG to your gpg2 executable if you are using a pinentry back end, since otherwise Config::Identity will prefer gpg.