EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Encrypt a file to Two Keys

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#4168
Posted: 10/29/2007 10:11:35
by Tony Krsulic (Basic support level)
Joined: 10/29/2007
Posts: 1

Evaluating the OpenPGPBlackbox component.

Wanted to be sure we can encrypt a file to multiple public keys. Some of our clients require we encrypt thier files to two or more keys, and we always add ourselves to the encryption so we can decreypt the files we sent to review if client has any issues with the contents. Tried adding a Key2 to your demo app's code and it still only encrypted to one key.

It is just my lack of understanding, so far, of how your code works, right? If we purchased a Lic, we would be able to encrypt to multiple keys?


TElPGPKeyring EncKeyring = new TElPGPKeyring();
try
{
EncKeyring.AddPublicKey(Key1);
EncKeyring.AddPublicKey(Key2);
pgpWriter.Armor = true;
pgpWriter.ArmorHeaders.Clear();
pgpWriter.ArmorHeaders.Add("Version: EldoS OpenPGPBlackbox");
pgpWriter.ArmorBoundary = "PGP MESSAGE";
pgpWriter.EncryptingKeys = EncKeyring ;
pgpWriter.EncryptionType = SBPGP.TSBPGPEncryptionType.etPublicKey;
info = new System.IO.FileInfo(strInputFilename);
pgpWriter.Filename = info.Name;
pgpWriter.Timestamp = DateTime.Now;

Thanks,

Tony!

#4170
Posted: 10/29/2007 10:57:29
by Ken Ivanov (EldoS Corp.)

Yes, SecureBlackbox supports encryption for multiple keys. Most likely, one of the keys you add to the keyring is a signing-only key.

Reply

Statistics

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