EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OpenPGP Encrypt for Multiple Recipients

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#25390
Posted: 06/22/2013 08:01:34
by Nicholas Miller (Basic support level)
Joined: 03/12/2013
Posts: 5

Hello,

I am wondering if it's possible with OpenPGPBlackBox to encrypt a file or memory stream for multiple recipients? If so, how would this be done?

Thanks,
Nick
#25391
Posted: 06/22/2013 08:09:57
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. Yes, it is possible - you should add multiple public keys to .EncryptingKeys keyring of ElPGPWriter.
This is also demonstrated in PGPFilesDemo (you can select multiple recepients with ctrl/shift clicking).
#25392
Posted: 06/22/2013 08:10:48
by Ken Ivanov (EldoS Corp.)

Hello Nicholas,

Thank you for getting in touch with us.

There are two general techniques of encrypting something to for multiple recipients:

1) Use password-based encryption. In this case the resulting document can be decrypted back by any person who knows the password. The password(s) can be passed to the components via the TElPGPWriter.Passphrases property.

2) Use public key encryption. In this case the document (or, to be exact, the session cryptographic key) is encrypted for every recipient individually with the use of the recipients' public keys. The encrypted document can only be decrypted by persons who possess the corresponding private keys. To encrypt a document for several recipients, please add public keys of every person you would like to be able to decrypt the document to a TElPGPKeyring object and assign that object to the TElPGPWriter.EncryptingKeys property.
#25393
Posted: 06/22/2013 08:30:19
by Nicholas Miller (Basic support level)
Joined: 03/12/2013
Posts: 5

This is exactly what I was looking for, thank you!

Reply

Statistics

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