diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-03-01 14:54:51 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-03-01 14:54:51 +0100 |
commit | dbff163d03295442c72445d526a33460f7e4a80b (patch) | |
tree | 3206dc304215b58b6450b838c94c6b04462594ba | |
parent | d1a3b117e8857ecd0426e1cf0b88ffb968004d8b (diff) | |
download | dotfiles-dbff163d03295442c72445d526a33460f7e4a80b.tar.gz |
added exportkey
-rwxr-xr-x | scripts/exportkey.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/exportkey.sh b/scripts/exportkey.sh new file mode 100755 index 0000000..90dbc01 --- /dev/null +++ b/scripts/exportkey.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Backup GPG keys as DMTX for offline backup + +# Generates key-aa, key-ab, ... +gpg --export-secret-key --armor $1 | split -b 1500 - key- + +# Convert each of them to a PNG image +for K in key-*; do + dmtxwrite -e 8 $K > $K.png +done |