execute gpg commands in dotnet?

  • Thread starter Thread starter Scott Emick
  • Start date Start date
S

Scott Emick

I've been trying for some time now to decrypt with GPG from inside vb .net
to no avail. my normal decrypt command goes something like this:

gpg.exe --armor --passphrase-fd 0 <
P:\mis\mfg\NorelcoIBM\etc\foxpassphrase.txt -o
\\fox7\mfg$\Applica\Infomercial\Orders\West\%1 -d
\\www\d$\Inetpub\ftproot\littermaid_west\inbox\%1.PGP

The input file is normally called something.txt.pgp and this command
generates the output file for me something.txt

The problem is coming inside .net from the fact that I am reading from
standard input the passphrase. I tried to write the passphrase to the
standard input of the process, that didn't work. I tried using Windows
scripting host to execute the command instead, that didn't work.

Has anyone found a way to make this work?
 
Very cool.

He might want to look at that library though -- it's a good blue print
for working with the ProcessInfo for complicated external commands. I
know I learned a lot from it!
 
Back
Top