EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PGP Equivalent to CommandLine

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#1297
Posted: 09/29/2006 08:52:04
by Judah Reeves (Standard support level)
Joined: 09/28/2006
Posts: 17

I'm trying to figure out how to encrypt and sign a file using SecureBlackboxPGP that would produce the same output that the following pgp command line arguments would produce:

-es -u <name> filename

The other company says I am encrypting properly, but not signed correctly. I'm using version 4.4.0.94. I've tried all sorts of different methods (19 to be specific). I have a public and private key. Even just pseudo code would help me see what to do. I can decrypt their files fine.

Thanks for your help.
#1305
Posted: 09/30/2006 02:57:03
by Eugene Mayevski (EldoS Corp.)

Use TElPGPWriter.EncryptAndSign() to encrypt and sign the data. Before you call the method, set SigningKeys and EncryptingKeys properties of TElPGPWriter.


Sincerely yours
Eugene Mayevski
#1311
Posted: 09/30/2006 05:34:13
by Ken Ivanov (EldoS Corp.)

Quote
The other company says I am encrypting properly, but not signed correctly.

PGP implementations are not completely compatible with each other. There are a lot of minor properties that can be understood by one application and not understood by another one. I would suggest you to play with UseOldPackets, UseNewFeatures and Armor properties. Please also check that you are passing the passphrase for secret key properly (e.g., using OnKeyPassphrase event). PGPFilesDemo might help you in your experiments.

If none of the above properties will help you, please ask your partner to provide more details about "not signed correctly" -- e.g., what exactly error is returned, what software is used etc. This will allow us to help you faster.
#1319
Posted: 10/02/2006 12:58:17
by Judah Reeves (Standard support level)
Joined: 09/28/2006
Posts: 17

Does PGP support the -se command which seems to be a sign and then encrypt?
#1321
Posted: 10/02/2006 13:18:35
by Eugene Mayevski (EldoS Corp.)

I don't know what -se command does. As for PGPBlackbox, it first signs, then encrypts the data.


Sincerely yours
Eugene Mayevski
#1323
Posted: 10/02/2006 16:25:06
by Judah Reeves (Standard support level)
Joined: 09/28/2006
Posts: 17

I would think that PGPBlackbox would be compatible with Gnu PGP and PGP official. However, none of them can verify the signatures of any file encrypted and signed using the demo provided. I keep getting "unexpected data".
#1324
Posted: 10/02/2006 16:30:09
by Ken Ivanov (EldoS Corp.)

Would you be so kind to provide us the *exact* output of GnuPG?
#1325
Posted: 10/02/2006 16:34:14
by Judah Reeves (Standard support level)
Joined: 09/28/2006
Posts: 17

C:\gnupg>gpg -v --verify test.txt.pgp
gpg: verify signatures failed: unexpected data
#1326
Posted: 10/02/2006 16:35:00
by Judah Reeves (Standard support level)
Joined: 09/28/2006
Posts: 17

Using gnupg 1.4.2
#1329
Posted: 10/02/2006 18:03:13
by Judah Reeves (Standard support level)
Joined: 09/28/2006
Posts: 17

Further info: signing alone is fine. Encrypting and signing, not so much.
Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.

Reply

Statistics

Topic viewed 25499 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!