mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 17:16:24 +02:00
17 lines
316 B
C#
17 lines
316 B
C#
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);
|
|
}
|
|
}
|