~ruther/NosSmooth

39102d72f4a93f6c69567a336b1ab05af5469a73 — Rutherther 2 years ago 6f3e768
fix(crypto): correctly cast byte to char
1 files changed, 1 insertions(+), 1 deletions(-)

M Core/NosSmooth.Cryptography/ClientWorldCryptography.cs
M Core/NosSmooth.Cryptography/ClientWorldCryptography.cs => Core/NosSmooth.Cryptography/ClientWorldCryptography.cs +1 -1
@@ 113,7 113,7 @@ public class ClientWorldCryptography : ICryptography
            }
        }

        return string.Concat(currentPacket.Cast<char>());
        return string.Concat(currentPacket.Select(x => (char)x));

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

Do not follow this link