$ /usr/bin/gpg --decrypt foo.txt.gpg
gpg: can't lock memory: Permission denied
My solution - use the native Windows build of gnupg downloaded from gnupg.org.
I had to copy the config over from ${HOME}/.gnupg to ${USERPROFILE}/.gnupg.
$ /c/programfiles/GNU/GnuPG/gpg --decrypt foo.txt.gpg
You need a passphrase to unlock the secret key for
user:
Problem solved. I will wait till the cygwin distribution gets everything together. In the meanwhile, I can get on with with my work.