473,385 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using PGP with .net to encrypt text content

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
6 1781
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

<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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Pratchaya | last post by:
How to encrypt URL Address ? ============================== Now i 'm play about PHP language . and now i want ot know how to " advance url display " like encrypt URL Address in browser ( IE ,...
0
by: List User | last post by:
------=_NextPart_000_014A_01C359A8.1A35D820 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable While I found some information on this subject: =...
8
by: Gidi | last post by:
Hi, Is there Buid-In fuction in C# that Encrypt and Decrypt strings? i have a textbox which i'm writing into file, and i want to encrypt it before writing, i'm not looking for something fancy,...
2
by: Miles Keaton | last post by:
still doing my switch from MySQL to PgSQL, and can't figure out what the comparable function would be for this: In MySQL, to store a big secret (like a credit card number) in the database that I...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
11
by: Grischa Brockhaus | last post by:
Hi, I'm trying to produce a div layout containing a header on the top with fixed height, a footer on the bottom using fixed height and a content layer using what's left of the browsers window. ...
2
by: theinsanecoder | last post by:
Hi, i'm using the xmlserializer to load and unload data from my files but i want to crypt them using a not so secure cryptographic encoder. My code to encrypt "seems" to work fine, the file is...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
3
by: melon | last post by:
I need to store some password on a text file. I was trying to use some kind of encryption to encrypt the password from plain text. I found the code below off the web, which works great. But...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.