Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Descrypt a file - PGP

Descrypt a file - PGP

Scheduled Pinned Locked Moved C#
csharptutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jbradshaw
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • J jbradshaw

      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.

      M Offline
      M Offline
      Matt U
      wrote on last edited by
      #2

      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.

      J 1 Reply Last reply
      0
      • M Matt U

        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.

        J Offline
        J Offline
        jbradshaw
        wrote on last edited by
        #3

        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.

        G 1 Reply Last reply
        0
        • J jbradshaw

          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.

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          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'

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups