I created a backup of a gpg
key by doing:
gpg -a --export-secret-keys foo@bar > private.key
gpg -a --export foo@bar > public.key
Then on another system, I import them:
gpg --import private.key
gpg --import public.key
I trusted the key as ultimate, and the backup seems to be working, the only thing that I notice is that when doing:
gpg --armor --export-secret-key foo@bar
The last 4 characters differ for example:
dutrV4c4hoPc6ntI3n9VztsL4LmmvoCcH969nJD6bTh4H1VMH98r8zECshtCSfVE
tMIIhXjA9xO1IZ6vMqHJU8TNhV2ttOE1Z/sUjcB46X4=
=TGyi
-----END PGP PRIVATE KEY BLOCK-----
In the new computer:
dutrV4c4hoPc6ntI3n9VztsL4LmmvoCcH969nJD6bTh4H1VMH98r8zECshtCSfVE
tMIIhXjA9xO1IZ6vMqHJU8TNhV2ttOE1Z/sUjcB46X4=
=/eDz
-----END PGP PRIVATE KEY BLOCK-----
Wondering why the last characters differ, in this case
=TGyi
and =/eDz
--list-packets
on each and compare the outputs, although the difference can be in parts of some packets that list-packets doesn't or can't display.