|Just another Perl shrine|
Stumped by Crypt::OpenPGP::Signature->key_idby mhi (Friar)
|on Nov 22, 2011 at 11:06 UTC||Need Help??|
mhi has asked for the
wisdom of the Perl Monks concerning the following question:
In trying to verify a PGP signature and determine the Key ID of the signing key, I have been stumped by the strange format I encountered in reading out that Key ID.
Expecting to find it in the usual hex format, I instead was offered 'key_id' => 'yp▒▒▒▒▒'. To me this is especially confusing as accoring to the docs when creating a signature, you are supposed to enter the Key-ID as an 8- or 16-digit hex number.
Here's a code snippet:
Argument "ypM-&M-^W^]M-^UM-\rM-^W" isn't numeric in printf at ./script.pl line 118. KeyID: 0x0 UserID:Test Key <email@example.com>
How can I get the Key-ID in hex? Am I just not seeing it? I would be delighted to be enlightened. :-)
Update/Correction: Input of course would be an 8- or 16-digit hex no., not 10 as I previously wrote.