?
Solved

VB and PGP Decryption

Posted on 2007-03-23
7
Medium Priority
?
1,980 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 2000 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Suggested Courses

649 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