aboutsummaryrefslogtreecommitdiffstats
path: root/unsplit-passphrase
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-02-03 15:37:51 +0000
committerNicolas Vigier <boklm@mageia.org>2011-02-03 15:37:51 +0000
commit72a606f0240d8c8800a6311d0f3caf9aabfabb58 (patch)
treeb066adbfb8b51bafcbf96fc8da78b4b1ea467e36 /unsplit-passphrase
parent5c22526225994d0ffda69774d38c503ac9ea5ffb (diff)
downloadgpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.tar
gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.tar.gz
gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.tar.bz2
gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.tar.xz
gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.zip
add script to unsplit passphrase
Diffstat (limited to 'unsplit-passphrase')
-rwxr-xr-xunsplit-passphrase6
1 files changed, 6 insertions, 0 deletions
diff --git a/unsplit-passphrase b/unsplit-passphrase
new file mode 100755
index 0000000..c1f4e79
--- /dev/null
+++ b/unsplit-passphrase
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. ./config
+
+cat "$partsdir/"* | $scombine -x -t $nb_threshold 2>&1 | grep '^Resulting secret: ' | sed 's/^Resulting secret: //' > "$passphrase"
+