private-key-qr-backup/bin/restore_key

8 lines
161 B
Plaintext
Raw Permalink Normal View History

2018-07-19 10:30:54 +00:00
#!/usr/bin/env sh
set -e
PUB_KEY=$1
INPUT_DIR=${2:-.}
cat "$INPUT_DIR"/*.txt | base64 -D | paperkey --pubring "$PUB_KEY" --input-type raw --output private.key