Command-line tool
paperkey
brew/paperkey
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Extract just secret information out of OpenPGP secret keys
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install paperkey
Linux
brew install paperkey
Take a specific secret key and generate a text file with the secret data
paperkey --secret-key path/to/secret_key.gpg --output path/to/secret_data.txt
Take the secret key data in `secret_data.txt` and combine it with the public key to reconstruct the secret key
paperkey --pubring path/to/public_key.gpg --secrets path/to/secret_data.txt --output secret_key.gpg
Export a specific secret key and generate a text file with the secret data
gpg --export-secret-key key | paperkey --output path/to/secret_data.txt
Related command-line tools
- openpgp-card-tools
A tool for inspecting, configuring and using OpenPGP cards - sop
Rust Interface for the Stateless OpenPGP Interface - sequoia-wot
An implementation of OpenPGP's web of trust. - sequoia-sqv
Simple OpenPGP signature verification program - sequoia-sop
An implementation of the Stateless OpenPGP Interface using Sequoia - git-secrets
Prevents you from committing sensitive information to a git repo - hopenpgp-tools
Command-line tools for OpenPGP-related operations - rnp
High performance C++ OpenPGP library used by Mozilla Thunderbird utility network ping tcp tcpping
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents