Forrest logo
back to the paperkey tool


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}
try on your machine

This command uses the "paperkey" utility to extract a human-readable and printable representation of a GPG secret key. The command takes in two arguments:

  1. --secret-key ${path-to-secret_key-gpg}: This specifies the path to the GPG secret key file (*.asc, *.gpg, etc.), from which the secret key will be extracted. Replace ${path-to-secret_key-gpg} with the actual file path.

  2. --output ${path-to-secret_data.txt}: This specifies the output file where the extracted secret key will be saved. Replace ${path-to-secret_data.txt} with the desired file path.

Overall, when you execute this command, it will read the secret key file specified by ${path-to-secret_key-gpg} and extract the secret key data into a human-readable format, and then save it in the file specified by ${path-to-secret_data.txt}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the paperkey tool