Fingerprints and Key-IDs

Werner Koch wk at gnupg.org
Sat Aug 6 17:44:51 CEST 2016


On Sat,  6 Aug 2016 15:02, patrick at enigmail.net said:

> Examples:
> * to get the original file name of encrypted files (in case encrypted
> files have names like "Attachment1.asc")

There has always been a status line with that; e.g. an encrypted
/etc/motd shows on decryption

  [GNUPG:] PLAINTEXT 62 1470497316 motd

> * to find out about the structure of OpenPGP keys before they are
> imported, for example to ask the user upfront whether the key(s) should
> be imported.

You should not do this because all what you see with --list-packets can
be faked.  If you are interested in the type of the data, you may want
to checkout the code in gpgme/src/data-identify.c.

gpg 2.1 can also be used to test-import keys.


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
 /* Join us at OpenPGP.conf  <https://openpgp-conf.org> */




More information about the Gnupg-devel mailing list