Sign up ×  How can I display what digest algorithm has a key? If
I import a public key which has MD5 as digest, I get a warning
about this weak algorith. But how can I check, what digest
algorithms all my keys use in my keyring?  share|improve this
question  closed as off-topic by fgrieu, DrLecter, e-sushi,
rath, figlesquidge Feb 14 '14 at 20:24   This question is off-
topic because it is about using a cryptographic program – 
fgrieu Feb 14 '14 at 10:56 To clarify, this website is about the
science of cryptography, and how one develops/applies
cryptographic designs. Your question is about how to use a
product already developed, rather like asking 'Where is the
ignition in a Ford Focus?' on a 'Mechanical engineering' site.
Hope that made sense –  figlesquidge Feb 14 '14 at 20:24  1
Answer 1  up vote 2 down vote accepted  You can use gpg --list-
packets [keyfile] to see a list of all packets and their
contents. All hash algorithms have numbers which you can look up
in section 9.4 of RFC 4880, "Hash Algorithms".