Remove public key from secret key

David Shaw dshaw at jabberwocky.com
Fri Jun 13 22:19:00 CEST 2008


On Mon, Jun 09, 2008 at 11:46:28PM -0400, Ivan Peev wrote:
> Hello Guys,
> 
> Is there a way to export the secret key without the public key or remove the
> public key from exported secret key? I'm trying the following scenario:
> 
> 1. Encrypt data with particular public key on one machine.
> 2. Decrypt data with related secret key on another machine.
> 
> Basically I don't want someone to be able to generate data, which can be
> decrypted with the related secret key.

No.  You can strip the public key data from the secret key, but then
the key is unusable (it's not a "OpenPGP key" any longer) until you
restore the public key data.

David



More information about the Gnupg-users mailing list