Skip to content

A tool to create human-writable versions of your PGP paperkey backup.

Notifications You must be signed in to change notification settings

vonshednob/paperkeywords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Paperkey Words

Paperkey can be used to create a plain text paper backup of your PGP/GPG private key.
However, if you don’t trust the available printer, it’s a pain to actually create the physical copy of your key, because you have to write down a lot of hex numbers.

paperkeywords can be used to transform those hex numbers into words (using PGP word list) and back again for recovery.

Backup and recover

To create a backup, run paperkey as usual and pipe the output through paperkeywords like this:

> gpg --export-secret-keys my-key | paperkey | python paperkeywords.py > paperkeywords.txt

Now you can start the tedious but secure job of writing down the content of paperkeywords.txt.

To restore your private key, you need your public key (without ascii armor). Then you can run this:

> cat paperkeywords | python paperkeywords.py -d | paperkey --pubring pubkey.gpg | gpg --import

That’s it. You recovered your private key.

Shorter Words

If you don’t like the amount of words you have to write, you can use the -r or --rfc1751 command line option. With this option paperkeyword will use the RFC1751 word list (or rather the first 512 words thereof) instead of the PGP word list.

When restoring your public key, you must apply the -r option again, obviously.

Nice, but where's the code?

It was moved to codeberg.

About

A tool to create human-writable versions of your PGP paperkey backup.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages