From b9d287b28c40903e49bc897e848df84d36bc1d0a Mon Sep 17 00:00:00 2001 From: "Albert S." Date: Sun, 22 Jun 2025 11:38:00 +0200 Subject: [PATCH] Remove encryptor.sh example --- examples/encryptor.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 examples/encryptor.sh diff --git a/examples/encryptor.sh b/examples/encryptor.sh deleted file mode 100755 index 2f39a18..0000000 --- a/examples/encryptor.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -#example: encrypt files once they get written to a directory and remove them -#launch with: adhocify -w /path/encryptin /path/to/this/script.sh {} -#This is a simple example and has security flaws: -#-no secure delete (better to use e. g. ramfs or tmpfs...) -#-then still not necessarily secure against people who can dump the content of the memory -set -e -DESTINATION="/tmp/store" -if [ -z "$1" ] ; then -echo "Need path to encrypt" >&2 -exit 1 -fi -sleep 2 #some clients may want to set permissions and so on after writing -FILEPATH="$1" -gpg -e -r mail@example.com -o $DESTINATION/$(basename $FILEPATH) $FILEPATH -rm $FILEPATH - - -