Seperate Session Key and Encrypted Data

Koszta Dániel daniel.koszta at
Thu Oct 1 17:08:13 CEST 2015

You can use the --show-session-key and --override-session-key option for

$ gpg --encrypt <<< "Test Message" > msg
$ gpg --decrypt --show-session-key msg
$ gpg --decrypt --override-session-key 'the_session_key_gpg_gave_you'

Note that you do not need your private key for the last operation.

However, I'm not sure of the security implications of this. From the gpg

> We think that Key Escrow is a Bad Thing

More information about the Gnupg-users mailing list