From: rmurray <> Date: Fri, 7 Dec 2001 04:13:37 +0000 (+0000) Subject: extend md5 hash to include 0-9 X-Git-Tag: debian_userdir-ldap_0-3-7~95 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=f0f69d8a35a0b66f900bf245204c1e462f93cf65 extend md5 hash to include 0-9 --- 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):