add age encryption related scripts

This commit is contained in:
2024-07-15 09:45:02 +10:00
parent 5a803b92bd
commit fe75874c7f
4 changed files with 3663 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/bash
set -e
filePath=$1
AGE_PUB_KEY="age1d47q8mlty404pxx378q49hr93aqexca4mkeqtdm00w4gjd09xd0qhxcdcz"
sops --age=$AGE_PUB_KEY --encrypt --encrypted-regex '^(data|stringData)$' --in-place $filePath
echo "File encrypted: $filePath."
git add $filePath
git commit -am "Encrypt file $filePath by Age."