diff options
Diffstat (limited to 'wr/mnsec')
-rwxr-xr-x | wr/mnsec | 8 |
1 files changed, 8 insertions, 0 deletions
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" |