Descrypt a file - PGP
-
One of our vendors is sending us files via FTP and they are going to use PGP. I'm writing a C# console program to download the files from the FTP site and decrypt them. They have also give me the .asc key file. I'm having real trouble decrypting the file using the asc key. Can anybody point me in the right direction? I was going to use GnuPGDotNet but can't figure out how to tell it to use the key file. TIA - Jeff.
-
One of our vendors is sending us files via FTP and they are going to use PGP. I'm writing a C# console program to download the files from the FTP site and decrypt them. They have also give me the .asc key file. I'm having real trouble decrypting the file using the asc key. Can anybody point me in the right direction? I was going to use GnuPGDotNet but can't figure out how to tell it to use the key file. TIA - Jeff.
-
Never done this before, myself. But maybe this will help: http://rlieving.blogspot.com/2009/10/implementing-pgp-file-encryption-in.html[^]
djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.
-
I actually was looking for a library that I could call directly from C#; not something where I have to go to the command prompt or run an external executable. Thanks again.
try http://www.bouncycastle.org/csharp/[^] for a free option - as with everything 'ymmv' There's a reasonably priced option if you look at Eldos OpenPGP Blackbox http://www.eldos.com/sbb/desc-pgp.php#[^] that I havnt seen fail yet (the trial download has everything, but you can license the OpenPGP Blackbox component on its own) 'g'