Re: Decrypt PGP Files
- From: "Lou Feliz" <l_f_e_l_i_z_no_sp_am@xxxxxxxxx>
- Date: Thu, 14 Jul 2005 15:52:20 -0700
Below is a link to Delphi PGP components. I used an older version of the
library 1.x and current version is 4.12.
http://idw-doc.homepage.t-online.de/PGPcomp.htm
I was using an earlier version, but it was quite simple to get it working.
PGPDecode.FileIn := 'c:\temp\test.zip.pgp';
PGPDecode.FileOut := 'c:\temp\test.zip';
if not GeneratingKeys then
begin
PGPDecode.DoDecodeFile;
Invalidate;
end;
I have one other method that is used to set the passphrase and it works
fine.
Download and install a PGP package for Windows on you PC.
Downlaod and install components into Delphi (I use Delphi 5)
Play with sample programs. I have yet to run my app as a system service,
but that is next on my list of things to do.
Hope this helps.
- Lou
"Kevin McBrearty" <kevin@xxxxxx> wrote in message
news:42d6bb06$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> I have an email database I received from a client, which contains
> various emails with PGP-encrypted attachments (I assume it's PGP, since
> that is the file extension of the attachments, e.g. file1.doc.pgp). I
> need to extract the attachments and decrypt them. My (limited)
> understanding of PGP is that to decrypt these attachments I will need
> the secret key of the recipient, since the files were encrypted with the
> recipient's public key.
>
> I have taken a quick look at PGPBlackBox and a couple of other products,
> but before I embark on this thing I would appreciate if someone could
> confirm that the following approach is valid and that it will work:
>
> 1- I need to get the private keys of the various recipients. Do I need
> the complete key file or just the master key value ?
> 2- I would have to import these keys into my keyring
> 3- I could then write some code to loop through the encrypted files and
> decrypt them one by one.
>
> Does this sound like a workable plan or am I about to walk off a cliff ?
>
> Thanks.
>
> Kevin McBrearty
> ATG Automation Technologies Group Ltd.
> kevin@xxxxxx
> http://www.atg.ca
.
- Follow-Ups:
- Re: Decrypt PGP Files
- From: Kevin McBrearty
- Re: Decrypt PGP Files
- References:
- Decrypt PGP Files
- From: Kevin McBrearty
- Decrypt PGP Files
- Prev by Date: Re: SMTP client component that supports Authentication
- Next by Date: Re: AsyncPro 4.06 COM Port Problem
- Previous by thread: Re: Decrypt PGP Files
- Next by thread: Re: Decrypt PGP Files
- Index(es):
Relevant Pages
|