MXS-581: Moved to MD5 based encryption of passwords
The admin users are now encrypted with a more complex algorithm which reduces the chance of two passwords generating the same hash by a significant amount. Refer to the GNU libc manual for more details about the crypt function: http://www.gnu.org/software/libc/manual/html_node/crypt.html
This commit is contained in:
@ -31,7 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <dcb.h>
|
#include <dcb.h>
|
||||||
|
|
||||||
#define ADMIN_SALT "MS"
|
#define ADMIN_SALT "$1$MXS"
|
||||||
|
|
||||||
extern int admin_verify(char *, char *);
|
extern int admin_verify(char *, char *);
|
||||||
extern char *admin_add_user(char *, char *);
|
extern char *admin_add_user(char *, char *);
|
||||||
|
|||||||
Reference in New Issue
Block a user