fix(network): Adds ConnectUO (#551)

- [X] Adds ability to create new protocol extension packets
- [X] Adds freeshard protocol extension support (packet 0xF1)
- [X] Adds ConnectUO support
- [X] Adds arbitrary read for `CircularBufferReader` and `SpanReader`
This commit is contained in:
Kamron Batman 2021-03-15 14:14:33 -07:00 • committed by GitHub
parent 76970325a3
commit 5e3b42bf9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 381 additions and 162 deletions

View file

@ -46,7 +46,7 @@ namespace Server.Accounting.Security
public bool ValidatePassword(string encryptedPassword, string plainPassword)
{
Span<byte> encryptedBytes = stackalloc byte[m_OutputSize];
HexStringConverter.GetBytes(encryptedPassword, encryptedBytes);
encryptedPassword.GetBytes(encryptedBytes);
var iterations = BinaryPrimitives.ReadUInt16LittleEndian(encryptedBytes.SliceToLength(2));
var salt = encryptedBytes.Slice(2, m_SaltSize);