~ruther/NosSmooth

6f3e76849e73a8b0f1642a96b2eb6cab42e68ac1 — Rutherther 2 years ago 343b2ba
fix(crypto): remove client world cryptography encoding conversion that does not work correctly
1 files changed, 4 insertions(+), 2 deletions(-)

M Core/NosSmooth.Cryptography/ClientWorldCryptography.cs
M Core/NosSmooth.Cryptography/ClientWorldCryptography.cs => Core/NosSmooth.Cryptography/ClientWorldCryptography.cs +4 -2
@@ 113,8 113,10 @@ public class ClientWorldCryptography : ICryptography
            }
        }

        byte[] tmp = Encoding.Convert(encoding, Encoding.UTF8, currentPacket.ToArray());
        return Encoding.UTF8.GetString(tmp);
        return string.Concat(currentPacket.Cast<char>());

        // byte[] tmp = Encoding.Convert(encoding, Encoding.UTF8, currentPacket.ToArray());
        // return Encoding.UTF8.GetString(tmp);
    }

    /// <inheritdoc />

Do not follow this link