Ricardo Felgueiras
Ricardo Felgueiras

Reputation: 3719

PGP decrypt file via ProcessStartInfo

I'm using the technique described on this page to decrypt a file PGP.

But once in a while you will see a popup to put the passphrase in command despite having indicated their passphrase to decrypt the file.

Has anyone had a similar problem?

Thank you.

Upvotes: 0

Views: 331

Answers (1)

pipo
pipo

Reputation: 408

When invoking gpg, try to make the call with these arguments:

> gpg --batch --yes --passphrase <the passphrase> --output <output file> --decrypt <encrypted file>

Upvotes: 1

Related Questions