Difference between revisions of "User:Aimilius/Paperkey"

From ArchWiki
Jump to: navigation, search
(Add export functionality)
(Usage: Add warning that it's necessary to backup the public key as well.)
Line 9: Line 9:
  
 
== Usage ==
 
== Usage ==
To create a backup of your private GnuPG key, pipe the key to paperkey:
+
{{Warning| You need to have the public key available when restoring the paperkey backup! Since it's safe to have your public key available publicly, consider uploading it to a [[GnuPG#Use a keyserver|keyserver]]. }}
 +
To create a backup of your GnuPG key, pipe the private key to paperkey:
 
  $ gpg --export-secret-key ''key-id'' | paperkey --output ''paperkey.asc''
 
  $ gpg --export-secret-key ''key-id'' | paperkey --output ''paperkey.asc''

Revision as of 11:06, 7 February 2018

Paperkey is a command line tool to export GnuPG keys on paper. It reduces the size of the exported key, by removing the public key parts from the private key. Paperkey also includes CRC-24 checksums in the key to allow the user to check whether their private key has been restored correctly.

Installation

Install paperkeyAUR from the AUR.

Usage

Warning: You need to have the public key available when restoring the paperkey backup! Since it's safe to have your public key available publicly, consider uploading it to a keyserver.

To create a backup of your GnuPG key, pipe the private key to paperkey:

$ gpg --export-secret-key key-id | paperkey --output paperkey.asc