diff --git a/gpg-quorum3.sh b/gpg-quorum3.sh new file mode 100755 index 0000000..3d44e46 --- /dev/null +++ b/gpg-quorum3.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +source variables.sh + +file=$1 + +#A,B +gpg -ea -r $a -r $b $debug --output $file.step1 $file + +#A,C +gpg -ea -r $a -r $c $debug --output $file.step2 $file.step1 + +#B,C +gpg -ea -r $b -r $c $debug --output $file.asc $file.step2 + +rm test.txt.step* + +#matrix: +#A,B +#A,C +#B,C diff --git a/gpg-quorum5.sh b/gpg-quorum5.sh new file mode 100755 index 0000000..100b76e --- /dev/null +++ b/gpg-quorum5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash + +source variables.sh + +file=$1 + +#A,B,C +gpg -ea -r $a -r $b -r $c $debug --output $file.step1 $file + +#A,B,D +gpg -ea -r $a -r $b -r $d $debug --output $file.step2 $file.step1 + +#A,B,E +gpg -ea -r $a -r $b -r $e $debug --output $file.step3 $file.step2 + +#A,C,D +gpg -ea -r $a -r $c -r $d $debug --output $file.step4 $file.step3 + +#A,C,E +gpg -ea -r $a -r $c -r $e $debug --output $file.step5 $file.step4 + +#A,D,E +gpg -ea -r $a -r $d -r $e $debug --output $file.step6 $file.step5 + +#B,C,D +gpg -ea -r $b -r $c -r $d $debug --output $file.step7 $file.step6 + +#B,C,E +gpg -ea -r $b -r $c -r $e $debug --output $file.step8 $file.step7 + +#B,D,E +gpg -ea -r $b -r $d -r $e $debug --output $file.step9 $file.step8 + +#C,D,E +gpg -ea -r $c -r $d -r $e $debug --output $file.asc $file.step9 + +rm test.txt.step* + +#matrix: +#A,B,C +#A,B,D +#A,B,E +#A,C,D +#A,C,E +#A,D,E +#B,C,D +#B,C,E +#B,D,E +#C,D,E diff --git a/variables3.sh b/variables3.sh new file mode 100755 index 0000000..8f4194c --- /dev/null +++ b/variables3.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +#add here the keys/emails of the recipients: +a="email@domain.net" +b="" +c="" +# +#the debug is a little different, use it with "-r" or leave the variable empty: +debug="-r email@domain.net" + diff --git a/variables5.sh b/variables5.sh new file mode 100755 index 0000000..aa79c65 --- /dev/null +++ b/variables5.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +#add here the keys/emails of the recipients: +a="email@domain.net" +b="" +c="" +d="" +e="" +# +#the debug is a little different, use it with "-r" or leave the variable empty: +debug="-r email@domain.net" +