From 6f3e76849e73a8b0f1642a96b2eb6cab42e68ac1 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 11 Feb 2023 20:24:06 +0100 Subject: [PATCH] fix(crypto): remove client world cryptography encoding conversion that does not work correctly --- Core/NosSmooth.Cryptography/ClientWorldCryptography.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/NosSmooth.Cryptography/ClientWorldCryptography.cs b/Core/NosSmooth.Cryptography/ClientWorldCryptography.cs index a6f4daf..1ecb7af 100644 --- a/Core/NosSmooth.Cryptography/ClientWorldCryptography.cs +++ b/Core/NosSmooth.Cryptography/ClientWorldCryptography.cs @@ -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()); + + // byte[] tmp = Encoding.Convert(encoding, Encoding.UTF8, currentPacket.ToArray()); + // return Encoding.UTF8.GetString(tmp); } /// -- 2.49.0