diff options
| author | Jakob Unterwurzacher | 2020-05-10 00:15:06 +0200 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2020-05-10 00:15:06 +0200 | 
| commit | 1d145be5a17df104a7c9260c7c93b9186688659e (patch) | |
| tree | 89eb094fa064fc141313317790405e3aba45889a | |
| parent | 5af7d3c699d1f78ba81b447285dd4ebae78ee644 (diff) | |
contrib: delete ctlsock-encrypt.bash
Closes https://github.com/rfjakob/gocryptfs/issues/416
| l--------- | contrib/ctlsock-decrypt.bash | 1 | ||||
| -rwxr-xr-x | contrib/ctlsock-encrypt.bash | 34 | 
2 files changed, 0 insertions, 35 deletions
| diff --git a/contrib/ctlsock-decrypt.bash b/contrib/ctlsock-decrypt.bash deleted file mode 120000 index b95ace8..0000000 --- a/contrib/ctlsock-decrypt.bash +++ /dev/null @@ -1 +0,0 @@ -ctlsock-encrypt.bash
\ No newline at end of file diff --git a/contrib/ctlsock-encrypt.bash b/contrib/ctlsock-encrypt.bash deleted file mode 100755 index 60a88e7..0000000 --- a/contrib/ctlsock-encrypt.bash +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -eu -# -# Interactively encrypt file names and paths by querying a gocryptfs -# control socket. -# -# Dependencies: -#  Debian: apt-get install jq netcat-openbsd -#  Fedora: dnf install jq nmap-ncat -MYNAME=$(basename $0) -if [[ $# -ne 1 || $1 == "-h" ]] ; then -	echo "Usage: $MYNAME SOCKET" -	exit 1 -fi -SOCK=$1 -# Bail out early (before even prompting the user) if the socket does -# not exist -if [[ ! -S $SOCK ]] ; then -	echo "'$SOCK' is not a socket" >&2 -	exit 1 -fi -OPERATION=EncryptPath -if [[ $MYNAME == "ctlsock-decrypt.bash" ]] ; then -	OPERATION=DecryptPath -fi -while true ; do -	echo -n "Input path      : " -	read IN -	echo -n "Transformed path: " -	JSON=$(echo "{\"$OPERATION\":\"$IN\"}" | nc -U $SOCK) -	ENCRYPTED=$(echo $JSON | jq -r '.Result') -	echo $ENCRYPTED -	echo    "Complete reply  : $JSON" -	echo -done | 
