Stores password as hash

Uses sha256
This commit is contained in:
Mcat12 2016-03-02 20:19:53 -05:00
parent b07b77c58f
commit fc4409b2c3

View file

@ -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