I have a gpg keyring with keys of various sizes in it. I would like to split this keyring by key size. For maximum generality I would like to put the keys <2048 bit into one file and those >=2048 bit into another keyring file but for the immediate problem separating keys of exactly 1024 bits from keys of other sizes would suffice.
Is there any easy way to do this?
I would be doing this on Debian and would want a soloution using tools available in the Debian archive.