dmshaw / paperkey

Print an OpenPGP key on paper for archive and recovery
GNU General Public License v2.0
194 stars 12 forks source link

--output-type raw inconsistent output #9

Closed yuv closed 2 years ago

yuv commented 2 years ago
gpg2 --export-secret-keys [fpr] | paperkey --output-type raw > first.bin
gpg2 --export-secret-keys [fpr] | paperkey --output-type raw > second.bin
vbindiff first.bin second.bin

expected result: first.bin and second.bin have identical content

actual result: they are not.

yuv commented 2 years ago

actually the problem starts upstream, sorry.

gpg2 --export-secret-keys [fpr] > first.bin
gpg2 --export-secret-keys [fpr] > second.bin
vbindiff first.bin second.bin
yuv commented 2 years ago

Got my answer and documenting it here for the future. https://dev.gnupg.org/T5981 the secret parts are salted and re-encrypted to comply with the OpenPGP specs