Add TcpRpc server and client and split crypto code into multiple classes

This commit is contained in:
Stone_Red
2026-06-09 19:26:34 +02:00
parent 5b8936dd16
commit e6bab7e371
11 changed files with 473 additions and 109 deletions
+16
View File
@@ -0,0 +1,16 @@
using RemSox.Utils;
namespace RemSox.Networking;
internal class AesPacketCrypto(byte[] key) : IPacketCrypto
{
public byte[] Decrypt(byte[] data)
{
return AesGcmCrypto.Decrypt(data, key);
}
public byte[] Encrypt(byte[] data)
{
return AesGcmCrypto.Encrypt(data, key);
}
}