list packets output & other misc

Werner Koch wk at gnupg.org
Thu Jun 5 10:44:58 CEST 2014


On Wed,  4 Jun 2014 23:15, shmick at riseup.net said:

> how can i mandatorily specify using other subkeys for the same primary
> key for 's' or 'e' either on command line or in an email client for
> example ?

  fortune | gpg -ea -r '12345678!'

assuming 12345678 is the subkeys' keyid.  Same for -u.

> how do i determine which key was used for encrypt ?
 
  gpg -v

Combined example:

  $ fortune | gpg --no-options --always-trust -ea -r 4ECFEF6F\! | gpg -v
  gpg: armor header: Version: GnuPG v1.4.13 (GNU/Linux)
  gpg: public key is 4ECFEF6F
  gpg: using subkey 4ECFEF6F instead of primary key CD8687F6
  
  You need a passphrase to unlock the secret key for
  user: "Heinrich Heine <heinrichh at duesseldorf.de>"
  gpg: using subkey 4ECFEF6F instead of primary key CD8687F6
  1024-bit ELG-E key, ID 4ECFEF6F, created 2006-01-17 (main key ID CD8687F6)
  
  gpg: gpg-agent is not available in this session
  gpg: encrypted with 1024-bit ELG-E key, ID 4ECFEF6F, created 2006-01-17
        "Heinrich Heine <heinrichh at duesseldorf.de>"
  gpg: AES256 encrypted data
  gpg: original file name=''
  You never know how many friends you have until you rent a house on the beach.

> is there a reference for the numerical values of version, hash, cipher,
> algo, sk2, etc ?

--list-packets is a debugging aid and thus you need to look at the
source or doc/DETAILS for some of these values.  However, most of these
numbers are specified in RFC-4880.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list