Seperate Session Key and Encrypted Data
Koszta Dániel
daniel.koszta at gmail.com
Thu Oct 1 17:08:13 CEST 2015
You can use the --show-session-key and --override-session-key option for
gpg.
$ 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
manual:
> We think that Key Escrow is a Bad Thing
More information about the Gnupg-users
mailing list