By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,680 Members | 1,578 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,680 IT Pros & Developers. It's quick & easy.

Using PGP with .net to encrypt text content

P: n/a
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

Jul 10 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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.
Jul 10 '06 #2

P: n/a

<ne*******@yahoo.comwrote in message
news:11**********************@s13g2000cwa.googlegr oups.com...
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.
Jul 10 '06 #3

P: n/a
"Mike Lowery" wrote:
Check out http://www.codeproject.com/csharp/gnupgdotnet.asp.
Good link! I think I might try that one myself.
Jul 10 '06 #4

P: n/a
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
Mike Lowery wrote:
<ne*******@yahoo.comwrote in message
news:11**********************@s13g2000cwa.googlegr oups.com...
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.
Jul 10 '06 #5

P: n/a
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.gnup...2cli-1.4.4.exe
Jul 11 '06 #6

P: n/a
Thank you for the direct link. I will check it out.

Leon Mayne wrote:
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.gnup...2cli-1.4.4.exe
Jul 11 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.