On Sun, 19 Jun 2022 07:58:46 -0400, Miner <
[email protected]d> wrote:
How to change keyid format from 40 to 16 digits lenght when GnuPG
verify a signature?
The keyid may be specified using 40 hex characters or using 8 hex characters. gpg --list-key 0xA97B385144E498D9157EDA1039B84EA598B013E0
and
gpg --list-key 0x98B013E0
The leading 0x can be ommitted. It's used for consistency with old versions
of pgp.
Note the 8 hex char version is identical to the last 8 hex characters of the long version.
If you're asking how to get gpg to only show the short version, I don't think it can be done. The long version exists and is used as there have been key id collisions using only the 8 hex character version.
While the short version is still allowed, there is a risk that it may match more than one key. Continue using it at your own risk.
Regards, Dave Hodgins
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)