Clientside fix for empty password
Thanks for finding this Reg
This commit is contained in:
@@ -62,7 +62,7 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
unauthenticatedClients.Remove(unauthenticatedClient);
|
||||
|
||||
string saltedPw = password;
|
||||
string saltedPw = password;
|
||||
saltedPw = saltedPw + Convert.ToString(unauthenticatedClient.Nonce);
|
||||
saltedPw = Encoding.UTF8.GetString(NetUtility.ComputeSHAHash(Encoding.UTF8.GetBytes(saltedPw)));
|
||||
NetEncryption algo = new NetXtea(server, saltedPw);
|
||||
|
||||
Reference in New Issue
Block a user