Solved

VB and PGP Decryption

Posted on 2007-03-23
7
1,925 Views
Last Modified: 2008-01-09
Hi:

I have a VB 6.0 application that needs to download files from an FTP site where the files are PGP encrypted. I've been doing a little research, but have been a little confused by the results I've found. There seem to be a variety of free and pay-for solutions out there. I'm not sure which is the best way to go. There must be some sort of COM component available I can use (via it's API). I have a keyring generated by the site provider. I also need to move the files around on the site between directories (not sure if this is an issue). Please provide an explanation and some sample code.

Thanks,
JohnB
0
Comment
Question by:jxbma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 18784895
I use PGP 6.5.8 which is the latest freeware downloadable from http://www.pgpi.org/products/pgp/versions/freeware/win32/6.5.8/.

I use the command line in one of my VB.Net application.
0
 
LVL 1

Author Comment

by:jxbma
ID: 18921578
So, you pull the PGP file down as is, and then as a shell command, run the command line against it. Is this the correct interpretation? I've seen some talk of possible com wrappers that are out there. Are you aware of these? I'll try running your solution and give you feedback.

Thanks kindly for your time and effort.
JohnB
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 18921600
I download the encrypted file from a secure FTP site. Once the file is saved locally, I run the PGP command line against it to decrypt it.
0
 
LVL 1

Author Comment

by:jxbma
ID: 19028359
OK. I've finally been able to get back to dealing with PGP decryption.

I've downloaded and installed from the PGP recommended link you mentioned. In my programs directory, under PGP, I see that I have a number of executables to choose from:  PGPdesk.exe, PGPnetshare.exe, PGPfsd.exe, PGPtray.exe, PGPwde.exe. I've tried running these from the (dos) command line to see which one I should use for decryption from the command line.  I've looked through the help documentation, but have been unable find anything. Which executable should I be using, and what are the appropriate command line options. Is there a way to get a list of the command line options?

Thanks,
JohnB
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 19029727
I use "Download PGP 6.5.8 command line"

­­>>Which executable should I be using,

I am using PGP.exe

>>and what are the appropriate command line options.

It depends on the option used to encrypt the file. Personnaly, I had to use:
pFileName + " -z " + strPassPhrase + " +force"

>>Is there a way to get a list of the command line options?

I found it in what I have downloaded.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question