Using PGP with .net to encrypt text content

N

nesster13

Hi,

I have a window application written in C# that can generate a report in
..txt format. My question is does anybody know how I can use PGP to
encrypt the text inside this .txt file before saving it? In other word,
is there a way to pass the text to PGP software so that it can encrypt
the data using a function written in C# code? Thanks
 
G

Guest

I have a window application written in C# that can generate a report in
..txt format. My question is does anybody know how I can use PGP to
encrypt the text inside this .txt file before saving it? In other word,
is there a way to pass the text to PGP software so that it can encrypt
the data using a function written in C# code? Thanks

Probably best to use a third party tool such as:
http://www.eldos.com/sbb/net-pgp.php
(Note, I haven't used it so can't comment on how good it is)

Either that or you'd have to use the PGP command line tools and feed the
data in and read back the STDOUT.
 
M

Mike Lowery

Hi,

I have a window application written in C# that can generate a report in
.txt format. My question is does anybody know how I can use PGP to
encrypt the text inside this .txt file before saving it? In other word,
is there a way to pass the text to PGP software so that it can encrypt
the data using a function written in C# code? Thanks

Check out http://www.codeproject.com/csharp/gnupgdotnet.asp.
 
N

nesster13

Thanks Mike for pointing out the link. I have downloaded the demo .
However, the link said that I must have GnuPG for Windows installed in
order for it to work. Now I have followed the link and ended up here
http://mirrors.rootmode.com/ftp.gnupg.org/gnupg/ . There were so many
different links on the page that I dont really know what to
download/install. Do you have the direct link where I can download
GnuPG? thanks
 
G

Guest

Thanks Mike for pointing out the link. I have downloaded the demo .
However, the link said that I must have GnuPG for Windows installed in
order for it to work. Now I have followed the link and ended up here
http://mirrors.rootmode.com/ftp.gnupg.org/gnupg/ . There were so many
different links on the page that I dont really know what to
download/install. Do you have the direct link where I can download
GnuPG? thanks

You were in the wrong directory, I think you want:
http://mirrors.rootmode.com/ftp.gnupg.org/binary/gnupg-w32cli-1.4.4.exe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top