Skip to content

Commit

Permalink
address deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
baughj committed Jul 22, 2024
1 parent ba87682 commit 136eee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hybrasyl/Networking/AbstractClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public byte[] GenerateKey(ushort bRand, byte sRand)

public void GenerateKeyTable(string seed)
{
var table = Crypto.HashString(seed, "MD5");
table = Crypto.HashString(table, "MD5");
for (var i = 0; i < 31; i++) table += Crypto.HashString(table, "MD5");
var table = Crypto.Md5HashString(seed);
table = Crypto.Md5HashString(table);
for (var i = 0; i < 31; i++) table += Crypto.Md5HashString(table);
EncryptionKeyTable = Encoding.ASCII.GetBytes(table);
}
}

0 comments on commit 136eee9

Please sign in to comment.