Skip to content

PgpEncryptedDataGenerator: How does open work with multiple methods? #491

Closed Answered by dghgit
Liam-Rougoor asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that's correct - essentially what happens is the data is encrypted once using a session key and then the session key is encrypted using each public key that has been added. This allows the holder of a private key corresponding to any of the public keys provided to recover the session key and consequently recover the data.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dghgit
Comment options

Answer selected by peterdettman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants