[FEATURE REQ, RFC], improving ergonomic HMI fingerprint cross verification

David Shaw dshaw at jabberwocky.com
Fri Jul 16 22:07:54 CEST 2004


On Fri, Jul 16, 2004 at 02:56:48PM -0500, Tim Mooney wrote:
> In regard to: Re: [FEATURE REQ, RFC], improving ergonomic HMI 
> fingerprint...:
> 
> >>As an example of use, I would do something like:
> >>
> >>	gpg --fingerprint mooney
> >>
> >>and then cut and paste (or sed out) the fingerprint and echo it into
> >>the program, like
> >>
> >>	echo "4A21 BFC1 E902 4518 968A  55A9 015F 6BA4 4757 6386" | callsign
> >
> >Try this:
> >
> >  gpg --with-colons --fingerprint 99242560 | egrep '^fpr' | cut -d: -f10 | 
> >  callsign
> 
> Thanks, my preferred method would actually be:
> 
>   gpg --fingerprint mooney | sed -ne 's/^.*Key fingerprint = //p' | callsign
> 
> but I showed the "easy and straightforward" method for the masses.

Be careful with parsing gpg output.  It is guaranteed to change
eventually and break your code (plus matching on the string "Key
fingerprint" only works if the language is English).  The only output
that will not change its format is --with-colons.

David



More information about the Gnupg-devel mailing list