From c794617a0dd100ddd472ba04f97f08aaf0bb6f77 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud <stig@ubnt.com> Date: Tue, 21 Aug 2012 13:02:56 -0700 Subject: Fix bug 318 - Use SHA-512 hashing for user passwords instead of MD5 Signed-off-by: Daniil Baturin <daniil@baturin.org> --- .../login/user/node.tag/authentication/plaintext-password/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/system/login') diff --git a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def index 12a74a36..242a623d 100644 --- a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def +++ b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def @@ -6,5 +6,5 @@ help: Plaintext password for encryption # password). update:expression: $VAR(@) == "" \ || ($VAR(../encrypted-password/@) \ - = `/usr/bin/mkpasswd -H md5 '$VAR(@)' | tr -d \\\\n` \ + = `/usr/bin/mkpasswd --method=sha-512 '$VAR(@)' | tr -d \\\\n` \ && $VAR(@) = "") -- cgit v1.2.3