Solved

VB and PGP Decryption

Posted on 2007-03-23
7
1,863 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 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
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
Comment Utility
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 69

Expert Comment

by:Éric Moreau
Comment Utility
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
Comment Utility
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 69

Expert Comment

by:Éric Moreau
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now