+ Reply to Thread
Results 1 to 7 of 7

Thread: PGP Encryption / Decryption

  1. #1
    Tom
    Tom is offline VB.NET Forum Idol Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2005
    Posts
    746
    Reputation
    340

    Default PGP Encryption / Decryption

    My company receives PGP encrypted data files from customers which our employees then decrypt using the PGP software prior to using are in-house software to import the decrypted data file(s) into our system. I want to know if there is a way to add the decryption process into the coding of our custom programs so that the file(s) download, decryption and import can all be performed automatically by our in-house VB applications without the need of manually decrypting the files using the PGP software. I’m hoping someone can point me in the right direction and would especially appreciate some working examples.

  2. #2
    Kevin@PGP is offline VB.NET Forum Newbie Kevin@PGP is on a distinguished programming path ahead
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Sep 2009
    Location
    San Francisco
    Posts
    3
    Reputation
    0

    Default

    Tom

    There are several ways to accomplish this depending how you want to go about it. The simplest method would be to utilize PGP Command Line. This allows you to decrypt (and encrypt) objects that have been encrypted with PGP. Installing PGP Command Line adds an additional command that can be called from scripts or other programs for this purpose.

    There is also a full SDK available from PGP if you want to go down that path, but Command Line is a simple way to go.

    More info here: PGP Command Line - File Encryption for Secure Business Processes

    (FULL DISCLOSURE: I work for PGP.)

    Cheers
    Kevin

  3. #3
    Tom
    Tom is offline VB.NET Forum Idol Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2005
    Posts
    746
    Reputation
    340

    Default

    Quote Originally Posted by Kevin@PGP View Post
    (FULL DISCLOSURE: I work for PGP.)

    Cheers
    Kevin
    Great, I know who to bug hell out of about all this....

    Is command line a seperate edition I have to bug my boss to purchase in addition to the version(s) we already have?

    I was hoping there was some simple api functions, that I could just call Decrypt(strFileName, PasswordPhrase) since the software is installed on the pc's.

    Also are there any actual vb sample apps available for dowload, showing how to use this functionality for the Command Line or even the SDK?

  4. #4
    Kevin@PGP is offline VB.NET Forum Newbie Kevin@PGP is on a distinguished programming path ahead
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Sep 2009
    Location
    San Francisco
    Posts
    3
    Reputation
    0

    Default

    PGP Command Line is a separate edition. But depending on what you have installed on the systems you may already have the functionality you need.

    What are you running on these systems?

    Basic usage:

    pgp --decrypt filename.pgp

    pgp --help (full list of flags)

  5. #5
    Tom
    Tom is offline VB.NET Forum Idol Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2005
    Posts
    746
    Reputation
    340

    Default

    They have PGP 8.1 installed (DUDX2021 PGP Workgroup Desktop 8.1 for Windows) they also have (PXD22C1PGP Desktop Professional 9.0 for Windows) software & license but the N.A. was never able to figure it out so they never did put it in production.

  6. #6
    Kevin@PGP is offline VB.NET Forum Newbie Kevin@PGP is on a distinguished programming path ahead
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Sep 2009
    Location
    San Francisco
    Posts
    3
    Reputation
    0

    Default

    8.1 is pretty old. 9.x will do it though.

    Let me see if I can find some 8.1 info.

  7. #7
    Tom
    Tom is offline VB.NET Forum Idol Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET Tom master of VB.NET
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2005
    Posts
    746
    Reputation
    340

    Default

    Since the 9.0 will be able to perform this, let me ask if I upgrade to the 9.0 version, can it use the existing keys from the older version? Besides the NA not really understanding either version (I cant complain much since I havent used it myself) I know that my boss wouldnt want to issue new keys to our different customers.

    Also the encrypted files we receive now have a .gpg extension, not sure if that makes a difference or not but figured I would mention it since I would of expected and extension actually of .pgp

    Besides being more coding, could you point out the differences between the Command Line edition or using SDK functionality? Would there be advantages to going the latter route and would a specific edition be needed?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts