OpenPGP encryption/decryption for multiple recipients

View: New views
2 Messages — Rating Filter:   Alert me  

OpenPGP encryption/decryption for multiple recipients

by Viet H. Phan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Experts,

Does BCPG support encryption and decryption for multiple recipients? The BCPG APIs doesn't seem to support that.

Thanks for your helps,
Viet


Re: OpenPGP encryption/decryption for multiple recipients

by Sai Pullabhotla :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, you can encrypt a file to multiple recipients using the class/method below:

org.bouncycastle.openpgp.PGPEncryptedDataGenerator.addMethod(PGPPublicKey
publicKey)

Such an encrypted file can be decrypted using any of the corresponding
private keys.

Sai Pullabhotla
www.jMethods.com



On Fri, Oct 9, 2009 at 11:35 AM, Viet H. Phan <hoangvietphan@...> wrote:
>
> Hi Experts,
>
> Does BCPG support encryption and decryption for multiple recipients? The BCPG APIs doesn't seem to support that.
>
> Thanks for your helps,
> Viet
>