aboutsummaryrefslogtreecommitdiff
path: root/.scripts/encrypt
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/encrypt')
-rwxr-xr-x.scripts/encrypt7
1 files changed, 7 insertions, 0 deletions
diff --git a/.scripts/encrypt b/.scripts/encrypt
new file mode 100755
index 0000000..6b399d8
--- /dev/null
+++ b/.scripts/encrypt
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+gpg --encrypt --armor --recipient "Master" -o "$1.enc" "$1"
+shred "$1"
+mv "$1.enc" "$1"