diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-02-03 15:37:51 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-02-03 15:37:51 +0000 |
commit | 72a606f0240d8c8800a6311d0f3caf9aabfabb58 (patch) | |
tree | b066adbfb8b51bafcbf96fc8da78b4b1ea467e36 | |
parent | 5c22526225994d0ffda69774d38c503ac9ea5ffb (diff) | |
download | gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.tar gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.tar.gz gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.tar.bz2 gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.tar.xz gpg-72a606f0240d8c8800a6311d0f3caf9aabfabb58.zip |
add script to unsplit passphrase
-rw-r--r-- | config | 2 | ||||
-rwxr-xr-x | split-passphrase | 6 | ||||
-rwxr-xr-x | unsplit-passphrase | 6 |
3 files changed, 7 insertions, 7 deletions
@@ -9,7 +9,7 @@ seckey_e="$PRIVDIR/mageia-board-seckey.gpg" passphrase="$PRIVDIR/passphrase" ssplit="./bin/ssss-split" -scombine="./bin/sss-combine" +scombine="./bin/ssss-combine" partsdir="$PRIVDIR/parts" nb_threshold=3 nb_shares=6 diff --git a/split-passphrase b/split-passphrase index 701e4ae..aff425e 100755 --- a/split-passphrase +++ b/split-passphrase @@ -2,12 +2,6 @@ . ./config -ssplit="./bin/ssss-split" -scombine="./bin/sss-combine" -partsdir="$PRIVDIR/parts" -nb_threshold=3 -nb_shares=6 - mkdir -p "$partsdir" $ssplit -x -t $nb_threshold -n $nb_shares < "$passphrase" > "$partsdir/all" 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" + |