From 4d0bd914e7c1ee65f4036e60149a7b891906a5d3 Mon Sep 17 00:00:00 2001 From: George Abbott Date: Tue, 31 Oct 2023 17:54:07 +0000 Subject: Commit all to date. --- wr/mnsec | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 wr/mnsec (limited to 'wr/mnsec') diff --git a/wr/mnsec b/wr/mnsec new file mode 100755 index 0000000..8f1d3ca --- /dev/null +++ b/wr/mnsec @@ -0,0 +1,8 @@ +#!/bin/sh +# mnsec: Make a secure encrypted entry using GPG. + +[ -z "$DEFAULT_GPG" ] && echo "DEFAULT_GPG not set" && return +mkdir -p "/tmp/mksec" +nvim "/tmp/mksec/$1" +gpg --encrypt --armor --symmetric -r "$DEFAULT_GPG" --output "$HOME/docs/wr/sec/$1" "/tmp/mksec/$1" +shred -u "/tmp/mksec/$1" -- cgit v1.2.1