--- /usr/lib/python2.7/site-packages/acct_mgr/model.py 2017-05-01 14:28:14.000000000 -0400 +++ /home/astembridge/NEW_model.py 2018-05-08 12:15:39.590237738 -0400 @@ -8,7 +8,7 @@ # # Author: Steffen Hoffmann -from acct_mgr.hashlib_compat import md5 +from acct_mgr.hashlib_compat import sha1 _USER_KEYS = { 'auth_cookie': 'name', @@ -137,7 +137,7 @@ account = res_row.pop('sid') authenticated = res_row.pop('authenticated') # Create single unique attribute ID. - m = md5() + m = sha1() m.update(''.join([account, str(authenticated), res_row.get('name')]).encode('utf-8')) row_id = m.hexdigest() @@ -155,13 +155,13 @@ 'id': {res_row['name']: row_id} } # Create account ID for additional authentication state. - m = md5() + m = sha1() m.update(''.join([account, str(authenticated)]).encode('utf-8')) res[account]['id'][authenticated] = m.hexdigest() else: # Create account ID for authentication state. - m = md5() + m = sha1() m.update(''.join([account, str(authenticated)]).encode('utf-8')) res[account] = {authenticated: {res_row['name']: res_row['value'], 'id': {res_row['name']: row_id}},