On Wed, Aug 07, 2013 at 12:29:40AM +0200, Paul Wise wrote: > Package: mnemonicode > Version: 0.73-1 > Severity: normal > > After converting my OpenPGP fingerprint to a binary file, I note that I > can't get the same data back when encoding and then decoding it. The > first four bytes and the last four bytes are different after decoding. > > pabs@chianamo ~ $ gpg --fingerprint pabs | grep 'Key fingerprint = .*69A3' | > sort -u | sed 's/.*=//;s/ //g' > 610B28B55CFCFE45EA1B563B3116BA5E9FFA69A3 > pabs@chianamo ~ $ cat foo | xxd > 0000000: 610b 28b5 5cfc fe45 ea1b 563b 3116 ba5e a.(.\..E..V;1..^ > 0000010: 9ffa 69a3 ..i. > pabs@chianamo ~ $ cat foo | mnencode | mndecode | xxd > Wordlist ver 0.7 > 0000000: e9e0 f952 5cfc fe45 ea1b 563b 3116 ba5e ...R\..E..V;1..^ > 0000010: 27d0 3b41 '.;A > > -- System Information: > Debian Release: jessie/sid > APT prefers testing > APT policy: (700, 'testing'), (600, 'unstable'), (550, 'experimental') > Architecture: amd64 (x86_64) > > Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores) > Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages mnemonicode depends on: > ii libc6 2.17-7 > > -- > bye, > pabs > > http://wiki.debian.org/PaulWise
Hello Paul, I couldn't reproduce your test. See below what I get with your key fingerprint. a=610B28B55CFCFE45EA1B563B3116BA5E9FFA69A3; echo $a; echo $a | mnencode 2>/dev/null | mndecode 610B28B55CFCFE45EA1B563B3116BA5E9FFA69A3 610B28B55CFCFE45EA1B563B3116BA5E9FFA69A3 echo -n 610B28B55CFCFE45EA1B563B3116BA5E9FFA69A3 > foo cat foo | xxd 0000000: 3631 3042 3238 4235 3543 4643 4645 3435 610B28B55CFCFE45 0000010: 4541 3142 3536 3342 3331 3136 4241 3545 EA1B563B3116BA5E 0000020: 3946 4641 3639 4133 9FFA69A3 cat foo | mnencode 2>/dev/null | mndecode | xxd 0000000: 3631 3042 3238 4235 3543 4643 4645 3435 610B28B55CFCFE45 0000010: 4541 3142 3536 3342 3331 3136 4241 3545 EA1B563B3116BA5E 0000020: 3946 4641 3639 4133 9FFA69A3 cat foo | hexdump -C 00000000 36 31 30 42 32 38 42 35 35 43 46 43 46 45 34 35 |610B28B55CFCFE45| 00000010 45 41 31 42 35 36 33 42 33 31 31 36 42 41 35 45 |EA1B563B3116BA5E| 00000020 39 46 46 41 36 39 41 33 |9FFA69A3| 00000028 cat foo | mnencode 2>/dev/null | mndecode | hexdump -C 00000000 36 31 30 42 32 38 42 35 35 43 46 43 46 45 34 35 |610B28B55CFCFE45| 00000010 45 41 31 42 35 36 33 42 33 31 31 36 42 41 35 45 |EA1B563B3116BA5E| 00000020 39 46 46 41 36 39 41 33 |9FFA69A3| 00000028 Cheers, Anibal
signature.asc
Description: Digital signature