diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-07-01 19:50:31 +0100 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-07-01 19:50:31 +0100 |
commit | 8e8caa6e8cbfe28166d15500da08771f23ee0125 (patch) | |
tree | 30f66c0935dea358e029867b6150f148b36cc8a6 | |
parent | 06073474594426a2da5cb9907fc7587df56c0c23 (diff) | |
download | vyatta-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-x | scripts/install/install-functions | 2 |
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" } |