List Info

Thread: Programming with GnuPG




Programming with GnuPG
user name
2006-01-24 14:38:05
I had posted a similar message regarding this about a month
ago and am
re-attempting to get some help. I need to write a C# console
app that
runs as part of a batch process to GnuPG encrypt an xml
file.

I am using the following code to run this, but it is not
creating an
encrypted file. I am able to manually encrypt a file using
these
commands, but it doesn't work using this code.

CommandLineProcess cmd = new CommandLineProcess();
cmd.Command = "gpg --recipient Test Recipient --encrypt
test.txt --armor";
cmd.UseComSpec = true;
bool bSuccess = cmd.Start();
cmd.Abort();

I imagine that the problem is there is another response that
needs to
be made to the gpg process, however, i am unsure how to do
this.

Any help would be greatly appreciated.





____________________________________________________________
__
Archives:         htt
p://groups.yahoo.com/group/PGP-Basics/messages
OT List:          http://gr
oups.yahoo.com/group/PGP-Basics-OT
OT Subscribe:    
mailto:PGP-Basics-OT-subscribe@yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://grou
ps.yahoo.com/group/PGP-Basics/

<*> To unsubscribe from this group, send an email to:
    PGP-Basics-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )