EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PGP Encrypted EXE

Posted: 10/30/2010 09:25:33
by Hank Arnold (Basic support level)
Joined: 10/30/2010
Posts: 1

We get text files encrypted to self-extracting EXE files using PGP. Can your product decompress them?

I downloaded the evaluation version and tried the following code:

ElSBLicenseManager1.LicenseKey :=
('8016D100E5759FB38BA5007086C64D6D3199D9FEAF4D77153BD032402C7DF055' +
'8ACFCA3E885A226B3BEAD335D1F88CAB14CDD33967CD53BE9EFB28EB9E9E6E0D' +
'DA9566B36902F715D76670CD9F868D96005838D98A946E9C2BA11C2E04A65087' +
'7005B5D6D6F147A39D0A260F55FFADAF6B1A588E9CFF3183175A6C6F8D79AD63' +
'41D271630A1182D3FE3A64C62587421173456B763A6D6BED6623EBD4B124E557' +
'D9EBE36BFDCFD2CCF13DEC40CCCCB4CB4D25822A5EF90602108198F1902C06EE' +
'0B274ADC18CE136D848A9B3C83C3DFFE8727A833E7A0083D258DC2EAE821914B' +
ElZipReader1.Open('Download 20101002.exe',True);
ElZipReader1.Password := 'xxx';

I got past the evaluation key errors, and I don't get any run-time errors.

I know I have the right password because I can unzip the files manually - but I don't get any file exported.

Is there a sample of decrypting EXE files somewhere?
Posted: 10/30/2010 09:43:57
by Eugene Mayevski (Team)

Thank you for contacting us.

No, processing of self-extracting PGP files is not supported out-of-the-box. The solution would be to locate beginning of PGP packet in the file and process PGP packets as they go. However, from formal point of view, the provided data is not a PGP file, and as such our code will not handle them right. IF the packets follow up to the end of file (which is unlikely) then you can seek the input stream to the beginning of PGP packets and pass the seeked stream to TElPGPReader. However, if there's some other data after packets, the reader will fail on those data.

Sincerely yours
Eugene Mayevski



Topic viewed 1757 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!