EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Encrypt a file to Two Keys

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();
pgpWriter.Armor = true;
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;



Posted: 10/29/2007 10:57:29
by Ken Ivanov (Team)

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



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