|May 19, 2023
|May 2, 2023
|Apr 13, 2023
#2 in #anything-except
84 downloads per month
A tool for dumping PGP keys as JSON.
cargo install pgpkeydump
If the build fails, then you might need
nettle. For macOS:
brew install nettle
Both ASCII-armored and binary inputs should work. If the filename argument is omitted, standard input is read instead. Output always goes to standard output.
PGP is a miserable ecosystem, and there is no good way to get a machine-readable representation of a PGP message without mucking through either an unstable textual CLI output or parsing individual PGP packets.
This tool exists solely to take a key-shaped PGP message and dump (some of) its contents. It doesn't support anything else, will never support anything else, and will never attempt to actually verify the authenticity or integrity of its inputs. It is not suitable for use for anything except exploration of a PGP key message's internals.
If this tool doesn't do what you want, then the closest alternatives are: