From f0f69d8a35a0b66f900bf245204c1e462f93cf65 Mon Sep 17 00:00:00 2001 From: rmurray <> Date: Fri, 7 Dec 2001 04:13:37 +0000 Subject: [PATCH] extend md5 hash to include 0-9 --- userdir_ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userdir_ldap.py b/userdir_ldap.py index 2511c71..aee0e6f 100644 --- a/userdir_ldap.py +++ b/userdir_ldap.py @@ -146,7 +146,7 @@ def GenPass(): def HashPass(Password): # Hash it telling glibc to use the MD5 algorithm - if you dont have # glibc then just change Salt = "$1$" to Salt = ""; - SaltVals = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/."; + SaltVals = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/."; Salt = "$1$"; Rand = open("/dev/urandom"); for x in range(0,10): -- 2.20.1