From dbff163d03295442c72445d526a33460f7e4a80b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 1 Mar 2020 14:54:51 +0100 Subject: added exportkey --- scripts/exportkey.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/exportkey.sh (limited to 'scripts') 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 -- cgit v1.2.3