Reputation: 9
i am new to PGP and i am trying to setup a bat file to decrypt my files to load into Automated Task. i was able to put together a bat file that worked however it kept prompting me for a password even though it was included in my bat command. Deeper research i found that gpg-agent needs to allow loopback as mentioned here https://lists.gnupg.org/pipermail/gnupg-devel/2015-May/029851.html So when i include --pinentry-mode loopback it now loops infinitely! If i remove it from my bat statement it still loops infinitely! without decrypting anything. Furthermore i have to force close the window. Here is the command i am using..
echo MyPassPhrase | gpg -v --batch --yes --pinentry-mode loopback --passphrase-fd 0 --force-mdc -d testing.file.pgp
Even if i use..
gpg -v -o test.txt --force-mdc -d testing.file.pgp
it loops infinitely!
Something is obviously wrong. I am using the GnuPG version 2.2.8. Thinking i should downgrade?? Been having a lot of issues with this version.
Upvotes: 1
Views: 3945
Reputation: 14290
Never had any issues using this syntax
gpg --batch --passphrase somepassphrase -o "Outfile.txt" --decrypt "Input.pgp"
Got a couple dozen automated tasks that do this several times a day.
Upvotes: 0