mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-06 23:41:33 +02:00
Reorganize project structure
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using RemSox.Shared.Cryptography;
|
||||
|
||||
namespace RemSox.Shared.Networking;
|
||||
|
||||
public 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user