From 39102d72f4a93f6c69567a336b1ab05af5469a73 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 11 Feb 2023 20:34:19 +0100 Subject: [PATCH] fix(crypto): correctly cast byte to char --- Core/NosSmooth.Cryptography/ClientWorldCryptography.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/NosSmooth.Cryptography/ClientWorldCryptography.cs b/Core/NosSmooth.Cryptography/ClientWorldCryptography.cs index 1ecb7af..7f98584 100644 --- a/Core/NosSmooth.Cryptography/ClientWorldCryptography.cs +++ b/Core/NosSmooth.Cryptography/ClientWorldCryptography.cs @@ -113,7 +113,7 @@ public class ClientWorldCryptography : ICryptography } } - return string.Concat(currentPacket.Cast()); + return string.Concat(currentPacket.Select(x => (char)x)); // byte[] tmp = Encoding.Convert(encoding, Encoding.UTF8, currentPacket.ToArray()); // return Encoding.UTF8.GetString(tmp); -- 2.49.0