Solved

VB and PGP Decryption

Posted on 2007-03-23
7
1,910 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 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