Skip to content

Commit

Permalink
Fixed code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliandev02 committed Sep 30, 2023
1 parent 4a2f138 commit 86ef625
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1278,9 +1278,11 @@ def register():
time.sleep(0.01)

client.send(f"{GREEN + Colors.BOLD}Password: {RESET + Colors.RESET}".encode("utf8"))

password = escape_ansi(client.recv(2048).decode("utf8"))
password = password.strip("\n")
password = str.encode(password)

hashed_password = SHAKE256.new()
hashed_password.update(password)
password = hashed_password.read(26).hex()
Expand Down

0 comments on commit 86ef625

Please sign in to comment.