> 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.