Adding recipients to an encrypted message?

Werner Koch wk at
Tue Oct 2 00:36:01 CEST 2001

On Mon, 01 Oct 2001 16:12:54 -0400 (EDT), mbp2  said:

> then re-encrypt it again to the new person, especially if the file is large. 
> It'd be very useful if I could tell GPG to decrypt the session key using my
> private key and immediately encrypt it (just the session key) with the new

have a look at the options

$ gpg --dump-options |grep session

The simplest way would be something like this:

$ gpg --show-session-key -o foo.txt foo.gpg 2>&1 \
  | gpg -e -r key-escrow at | mail solo at u.n.c.l.e 

And on the u.n.c.l.e site Napoleon could do this:

$ gpg --override-session-key extracted_from_mail  msg_from_echelon

Well you can also use the session key to create a public key encrypted
packet and prepend it to the message - however there is no direct
support for it in GnuPG.


Werner Koch        Omnis enim res, quae dando non deficit, dum habetur
g10 Code GmbH      et non datur, nondum habetur, quomodo habenda est.
Privacy Solutions                                        -- Augustinus

More information about the Gnupg-devel mailing list