[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] Default password hash algo
From:       Joshua Jackson <busybox () vortech ! net>
Date:       2003-01-30 13:43:03
[Download RAW message or body]

Is there a compelling reason not to switch the default hash for the passwd 
applet to MD5? If not, I have attached the simple-stupid patch that I use to 
do so.
["passwd.c.patch" (text/x-diff)]

--- passwd.c.orig	2002-07-18 20:05:46.000000000 -0400
+++ passwd.c	2003-01-30 15:37:44.000000000 -0500
@@ -23,10 +23,10 @@
 
 int get_algo(char *a)
 {
-	int x = 0;					/* standart: DES */
+	int x = 1;					/* standard: MD5 */
 
-	if (strcasecmp(a, "md5") == 0)
-		x = 1;
+	if (strcasecmp(a, "des") == 0)
+		x = 0;
 	return x;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic