encrytp to specific key

Atom 'Smasher' atom-gpg at suspicious.org
Sat Dec 20 15:07:39 CET 2003


thanks (especially to david shaw) for answering my questions, however
stupid my questions are ;)

if i have multiple sub-keys, can i choose which key to use for encryption?

-------------------------------------------------------
$ gpg --list-keys smasher
pub  1024D/3D7D41E3 2003-10-04 Atom Smasher <atom at suspicious.org>
uid                            Atom Smasher <atom at smasher.org>
sub  2048g/1E88BF71 2003-10-04 [expires: 2005-01-26]
sub  2048R/7A5B8533 2003-12-20 [expires: 2005-06-12]
sub  4096R/EA64D6B5 2003-12-20 [expires: 2005-06-12]

$ gpg -er 0x3D7D41E3 < random1 | pgpdump | egrep 0x
	Key ID - 0x4C691B7DEA64D6B5
$ gpg -er 0x1E88BF71 < random1 | pgpdump | egrep 0x
	Key ID - 0x4C691B7DEA64D6B5
$ gpg -er 0x7A5B8533 < random1 | pgpdump | egrep 0x
	Key ID - 0x4C691B7DEA64D6B5
$ gpg -er 0xEA64D6B5 < random1 | pgpdump | egrep 0x
	Key ID - 0x4C691B7DEA64D6B5
-------------------------------------------------------
(note: those RSA keys are *NOT* on my public key-ring :: i'm just
experimenting with them locally)

i thought i could tell gpg which sub-key to encrypt to, but it seems to
use the sub-key that *it* wants to encrypt to.

note: 2048R/7A5B8533 is a sign only RSA key, so i don't actually expect
that one to produce an encryption.


	...atom

 _______________________________________________
 PGP key - http://smasher.suspicious.org/pgp.txt
 3EBE 2810 30AE 601D 54B2 4A90 9C28 0BBF 3D7D 41E3
 -------------------------------------------------

	"The optimist thinks this is the best of all possible worlds.
	 The pessimist fears it is true."
		-- Robert Oppenheimer




More information about the Gnupg-users mailing list