[Mageia-sysadm] [393] add script to unsplit passphrase

root at mageia.org root at mageia.org
Thu Feb 3 16:37:51 CET 2011


Revision: 393
Author:   boklm
Date:     2011-02-03 16:37:51 +0100 (Thu, 03 Feb 2011)
Log Message:
-----------
add script to unsplit passphrase

Modified Paths:
--------------
    gpg/config
    gpg/split-passphrase

Added Paths:
-----------
    gpg/unsplit-passphrase

Modified: gpg/config
===================================================================
--- gpg/config	2011-02-03 14:53:29 UTC (rev 392)
+++ gpg/config	2011-02-03 15:37:51 UTC (rev 393)
@@ -9,7 +9,7 @@
 passphrase="$PRIVDIR/passphrase"
 
 ssplit="./bin/ssss-split"
-scombine="./bin/sss-combine"
+scombine="./bin/ssss-combine"
 partsdir="$PRIVDIR/parts"
 nb_threshold=3
 nb_shares=6

Modified: gpg/split-passphrase
===================================================================
--- gpg/split-passphrase	2011-02-03 14:53:29 UTC (rev 392)
+++ gpg/split-passphrase	2011-02-03 15:37:51 UTC (rev 393)
@@ -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"

Added: gpg/unsplit-passphrase
===================================================================
--- gpg/unsplit-passphrase	                        (rev 0)
+++ gpg/unsplit-passphrase	2011-02-03 15:37:51 UTC (rev 393)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. ./config
+
+cat "$partsdir/"* | $scombine -x -t $nb_threshold 2>&1 | grep '^Resulting secret: ' | sed 's/^Resulting secret: //' > "$passphrase"
+


Property changes on: gpg/unsplit-passphrase
___________________________________________________________________
Added: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110203/8f6064e1/attachment-0001.html>


More information about the Mageia-sysadm mailing list