From fc4409b2c3197b841332257bd0c6568450507feb Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Wed, 2 Mar 2016 20:19:53 -0500 Subject: [PATCH] Stores password as hash Uses sha256 --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 883e2c61..e958fb8a 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -664,7 +664,7 @@ setPassword() { if [ $? = 0 ]; then # Entered password - echo $pass > /etc/pihole/password.txt + echo -n "$pass" | sha256sum | awk '{print $1}' > /etc/pihole/password.txt else echo "::: Cancel selected, exiting...." exit 1