This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Description
Hello,
I am trying to suppress passphrase prompt completely as we are looking for a fully automated unattended decryption program. I am using Task Scheduler to run the below command
echo mypassphrase|gpg --logger-file "D:\FileShare\PGPScripts\SFTP\gpglog.log" --pinentry-mode loopback --batch --yes --passphrase-fd 0 --decrypt-files "D:\FileShare\WIP*.pgp"
After the system goes idle the decryption starts failing with the error "Bad Passphrase/ Secret key available". After running a manual decryption, the job continues to run successfully.
What should I do to get rid of this problem?
Are the below options going to be helpful in my case?
add pinentry-mode loopback to %APPDATA%\gnupg\gpg.conf;
then run gpgconf --kill gpg-agent ;