From 8e8caa6e8cbfe28166d15500da08771f23ee0125 Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Wed, 1 Jul 2015 19:50:31 +0100 Subject: 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 --- scripts/install/install-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/install/install-functions') 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" } -- cgit v1.2.3