aboutsummaryrefslogtreecommitdiff
path: root/.scripts/encrypt
diff options
context:
space:
mode:
authorMarvin Borner2023-08-29 15:44:16 +0200
committerMarvin Borner2023-08-29 15:46:00 +0200
commit8f6e86ee72a20fc9bbac62d71e0921b152eaa0bb (patch)
tree2feb0ee3276bc24ab847a57938fd9fc281b260d7 /.scripts/encrypt
parente6e5c70f6cc741e0edee2f0c1de07909d1c91edc (diff)
Sync
Not much tbh. I'm fairly happy with my setup
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"