I'm trying to decrypt a GPG/PGP file using GPG via the command line.
This works:
"C:\Program Files\GnuPG\gpg.exe" -o "C:\MyFile.txt" -d "C:\MyEncryptedFile.pgp"
However the command-window prompts me for my passphrase.
I plan on scripting this and calling an InputBox to prompt for the passphrase entry. Right now I'm trying to put the passphrase as a literal string parameter on the command-line using various options but I can't get it to work.
I've read about invoking the gpg-agent and pre-loading a passphrase in the documentation but I can't seem to figure out the details.
This works:
"C:\Program Files\GnuPG\gpg.exe" -o "C:\MyFile.txt" -d "C:\MyEncryptedFile.pgp"
However the command-window prompts me for my passphrase.
I plan on scripting this and calling an InputBox to prompt for the passphrase entry. Right now I'm trying to put the passphrase as a literal string parameter on the command-line using various options but I can't get it to work.
I've read about invoking the gpg-agent and pre-loading a passphrase in the documentation but I can't seem to figure out the details.