EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Invalid PGP packet

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#3294
Posted: 07/05/2007 12:56:13
by Mohammed Mubeen (Standard support level)
Joined: 07/05/2007
Posts: 1

The code I am using is this:
SBUtils.Unit.SetLicenseKey("******");
SBPGPKeys.TElPGPKeyring pgpKeys = new SBPGPKeys.TElPGPKeyring();
pgpKeys.Load(_keyringpath + "\\KeyRings\\pubring.pkr", _keyringpath + "\\KeyRings\\secring.skr", true);
SBPGP.TElPGPReader pgpE = new SBPGP.TElPGPReader();
pgpE.OnRequestOutputFile += new SBPGP.TSBPGPRequestOutputFileEvent(pgpE_OnRequestOutputFile);
pgpE.DecryptingKeys = pgpKeys;
pgpE.VerifyingKeys = pgpKeys;
pgpE.Passphrase = <passphrase> ;
pgpE.KeyPassphrase = <passphrase>;
pgpE.OutputFile = _outfile;
pgpE.DecryptAndVerifyFile(_infile);

I have successfully used our private and public keys and encrypted and then decrypted files successfully. When our vendor send their file I am getting this message on trying to decrypt. What am I missing. I did FTP the file down from their site. Should I be using binary down format?
#3295
Posted: 07/05/2007 13:46:33
by Eugene Mayevski (EldoS Corp.)

If the file is not armored (i.e. is not ASCII-encoded), then of course you need to use binary mode for FTP transfer. If you used correct mode and you still have problems, use some other tool (PGP Desktop or GnuPG) to attempt to decrypt the file and see the result.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 1809 times

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




|

Back to top

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

Got it!