Implemented basic hashing

This commit is contained in:
2024-01-30 12:50:47 +01:00
parent 9c3d12bb50
commit 40070557b7
2 changed files with 10 additions and 2 deletions

View File

@ -22,7 +22,7 @@ func send_login():
if is_logged_in():
return
var password := "password"
var password := "password".sha256_text()
var buffer := StreamPeerBuffer.new()
buffer.put_8(Packet.LOGIN)
buffer.put_data(JSON.stringify([Global.username, password]).to_utf8_buffer())