[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Default password encryption method
From: "Matthias Klein" <matthias.klein () optimeas ! de>
Date: 2014-04-28 7:14:54
Message-ID: em2a137118-d3a4-4397-b03b-c0eb26239525 () nb-mak
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
ping ...
------ Weitergeleitete Nachricht ------
Von: "Matthias Klein" <matthias.klein@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
[Attachment #5 (unknown)]
<HTML><HEAD>
<STYLE id=eMClientCss>blockquote.cite { margin-left: 5px; margin-right: 0px; \
padding-left: 10px; padding-right:0px; border-left: 1px solid #000000 \
}
.plain pre, .plain tt { font-family: monospace; font-size: 100%; font-weight: normal; \
font-style: normal; } body {font-family: Tahoma;font-size: 12pt;}
.plain pre, .plain tt {font-family: Tahoma;font-size: 12pt;}
</STYLE>
<STYLE>#2e68d6e2d274434d8c709c370f57dafe BLOCKQUOTE.cite
{PADDING-LEFT: 10px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 1px solid; PADDING-RIGHT: \
0px; MARGIN-RIGHT: 0px} #2e68d6e2d274434d8c709c370f57dafe .plain PRE, \
#2e68d6e2d274434d8c709c370f57dafe .plain TT {FONT-SIZE: 100%; FONT-FAMILY: monospace; \
FONT-WEIGHT: normal; FONT-STYLE: normal} #2e68d6e2d274434d8c709c370f57dafe, \
#2e68d6e2d274434d8c709c370f57dafe .plain PRE, #2e68d6e2d274434d8c709c370f57dafe \
.plain TT {FONT-SIZE: 12pt; FONT-FAMILY: Tahoma}
#2e68d6e2d274434d8c709c370f57dafe .plain TT
{FONT-SIZE: 100%; FONT-FAMILY: monospace; FONT-WEIGHT: normal; FONT-STYLE: normal}
#2e68d6e2d274434d8c709c370f57dafe .plain TT
{FONT-SIZE: 12pt; FONT-FAMILY: Tahoma}
</STYLE>
</HEAD>
<BODY scroll=auto class>
<DIV>ping ...</DIV>
<DIV> </DIV>
<DIV>------ Weitergeleitete Nachricht ------</DIV>
<DIV>Von: "Matthias Klein" <<A \
href="mailto:matthias.klein@optimeas.de">matthias.klein@optimeas.de</A>></DIV> \
<DIV>An: <A href="mailto:busybox@busybox.net">busybox@busybox.net</A></DIV> \
<DIV>Gesendet: 11.04.2014 19:40:28</DIV> <DIV>Betreff: Default password encryption \
method</DIV> <DIV> </DIV>
<DIV id=2e68d6e2d274434d8c709c370f57dafe>
<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>is it possible to use sha512 instead of des or md5 as default when the option \
USE_BB_CRYPT_SHA is selected ?</DIV> <DIV> </DIV>
<DIV> </DIV>
<DIV>I think of a patch like:</DIV>
<DIV> </DIV>
<DIV>
<DIV>diff --git a/loginutils/Config.src b/loginutils/Config.src </DIV>
<DIV>index fa2b4f8..b398972 100644 </DIV>
<DIV>--- a/loginutils/Config.src </DIV>
<DIV>+++ b/loginutils/Config.src </DIV>
<DIV>@@ -285,7 +285,8 @@ config CHPASSWD </DIV>
<DIV> </DIV>
<DIV> config FEATURE_DEFAULT_PASSWD_ALGO </DIV>
<DIV> string "Default password \
encryption method (passwd -a, cryptpw -m parameter)" </DIV> <DIV>- default "des" \
</DIV> <DIV>+ default "md5" </DIV>
<DIV>+ default "sha512" if USE_BB_CRYPT_SHA </DIV>
<DIV> depends on PASSWD || CRYPTPW \
</DIV> <DIV> help </DIV>
<DIV> Possible choices are \
"d[es]", "m[d5]", "s[ha256]" or "sha512". </DIV> <DIV> </DIV>
<DIV>(But the above mentioned "if" does not work)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Best regards,</DIV>
<DIV> </DIV>
<DIV>Matthias</DIV></DIV></DIV></BODY></HTML>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic