summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2015-07-01 19:50:31 +0100
committerAlex Harpin <development@landsofshadow.co.uk>2015-07-01 19:50:31 +0100
commit8e8caa6e8cbfe28166d15500da08771f23ee0125 (patch)
tree30f66c0935dea358e029867b6150f148b36cc8a6
parent06073474594426a2da5cb9907fc7587df56c0c23 (diff)
downloadvyatta-cfg-system-8e8caa6e8cbfe28166d15500da08771f23ee0125.tar.gz
vyatta-cfg-system-8e8caa6e8cbfe28166d15500da08771f23ee0125.zip
vyatta-cfg-system: use sha-512 instead of md5 for installation password
In line with Bug #318 and Bug #355, use SHA-512 instead of MD5 when creating the initial vyos user password during installation. Bug #579 http://bugzilla.vyos.net/show_bug.cgi?id=579
-rwxr-xr-xscripts/install/install-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install/install-functions b/scripts/install/install-functions
index 90355974..1551fbb0 100755
--- a/scripts/install/install-functions
+++ b/scripts/install/install-functions
@@ -252,7 +252,7 @@ change_password() {
done
# escape any slashes in resulting password
- local epwd=$(mkpasswd -H md5 "$pwd1" | sed 's:/:\\/:g')
+ local epwd=$(mkpasswd --method=sha-512 "$pwd1" | sed 's:/:\\/:g')
set_encrypted_password "$user" "$epwd" "$config"
}