def getMD5Password(p): p = str(p).strip() return md5crypt.unix_md5_crypt(p, getRandomPassword(length=8))
def generate_md5_password(p): p = str(p).strip() return md5crypt.unix_md5_crypt(p, generate_random_strings(length=8))