Default password encryption method

Matthias Klein matthias.klein at optimeas.de
Fri Apr 11 17:40:28 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140411/d185a6c6/attachment.html>


More information about the busybox mailing list