ping ...

------ Weitergeleitete Nachricht ------
Von: "Matthias Klein" <matthias.kl...@optimeas.de>
An: busybox@busybox.net
Gesendet: 11.04.2014 19:40:28
Betreff: Default password encryption method

Hello,

is it possible to use sha512 instead of des or md5 as default when the option USE_BB_CRYPT_SHA is selected ?


I think of a patch like:

diff --git a/loginutils/Config.src b/loginutils/Config.src
index fa2b4f8..b398972 100644
--- a/loginutils/Config.src
+++ b/loginutils/Config.src
@@ -285,7 +285,8 @@ config CHPASSWD

 config FEATURE_DEFAULT_PASSWD_ALGO
string "Default password encryption method (passwd -a, cryptpw -m parameter)"
- default "des"
+ default "md5"
+ default "sha512" if USE_BB_CRYPT_SHA
        depends on PASSWD || CRYPTPW
        help
          Possible choices are "d[es]", "m[d5]", "s[ha256]" or "sha512".

(But the above mentioned "if" does not work)


Best regards,

Matthias
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to