Add cipher/uncipher scripts
Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
This commit is contained in:
6
terraform/training/files/cipher.sh
Executable file
6
terraform/training/files/cipher.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ls -1 *.tf | while read f ; do
|
||||||
|
echo "Ciiphering $f"
|
||||||
|
cat $f | gpg -e -r arnaud@mailops.fr -r arnaud.morin@gmail.com > $f.gpg
|
||||||
|
done
|
||||||
7
terraform/training/files/uncipher.sh
Executable file
7
terraform/training/files/uncipher.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ls -1 *.gpg | while read f ; do
|
||||||
|
echo "Unciphering $f"
|
||||||
|
n=${f%.gpg}
|
||||||
|
cat $f | gpg -d > $n
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user