Link to home
Start Free TrialLog in
Avatar of jxbma
jxbmaFlag for United States of America

asked on

VB and PGP Decryption

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
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jxbma

ASKER

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
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.
Avatar of jxbma

ASKER

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