From fb5d43a00b4ee32e6dc1b6940fea1a35ada40282 Mon Sep 17 00:00:00 2001 From: PierreGode <8579922+PierreGode@users.noreply.github.com> Date: Tue, 14 Apr 2020 11:07:43 +0200 Subject: [PATCH] Added Password encryption Added Password encryption to generate encrypted password for automated joining with readfile encryption will genetate encrypted.dat > (your password encrypted) and private_key.pem public_key.pem all tree files are needed to decrypt the password. Find a way to get private_key.pem from outside source. Please do NOT store your private_key.pem with the other files untill the joining process. encrypt a password with sudo sh ADconnection.sh -p --- ADconnection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index 95bea2c..ae7f13e 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -2075,7 +2075,7 @@ while test $# -gt 0; do fi ;; -p|--p) - if test $? -gt 0; then + if test $# -gt 0; then encrypt else echo ""