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