adding .encode to the new hashlib

master
manetta 2 years ago
parent 95c0710347
commit 8ddb374b77

@ -40,7 +40,7 @@ for username in usernames:
userdata['username'] = username userdata['username'] = username
userdata['password'] = password userdata['password'] = password
# userdata['password_sha1'] = passwd(password) # userdata['password_sha1'] = passwd(password)
userdata['password_sha1'] = sha1(password) userdata['password_sha1'] = sha1(password.encode("utf-8"))
userdata['port'] = curport userdata['port'] = curport
userdata['servername'] = servername userdata['servername'] = servername
users.append(userdata) users.append(userdata)

Loading…
Cancel
Save