added basics

This commit is contained in:
panda 2020-04-16 12:53:51 +02:00
parent beed17cdf4
commit 3fea14f998
4 changed files with 92 additions and 0 deletions

21
gpg-quorum3.sh Executable file
View file

@ -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

49
gpg-quorum5.sh Executable file
View file

@ -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

10
variables3.sh Executable file
View file

@ -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"

12
variables5.sh Executable file
View file

@ -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"