extend md5 hash to include 0-9
authorrmurray <>
Fri, 7 Dec 2001 04:13:37 +0000 (04:13 +0000)
committerrmurray <>
Fri, 7 Dec 2001 04:13:37 +0000 (04:13 +0000)
userdir_ldap.py

index 2511c71..aee0e6f 100644 (file)
@@ -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):