27 lines
545 B
C#
27 lines
545 B
C#
|
using System;
|
||
|
using System.IO;
|
||
|
using System.Security.Cryptography;
|
||
|
|
||
|
namespace Lidgren.Network
|
||
|
{
|
||
|
public class NetDESEncryption : NetCryptoProviderBase
|
||
|
{
|
||
|
public NetDESEncryption(NetPeer peer)
|
||
|
: base(peer, new DESCryptoServiceProvider())
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public NetDESEncryption(NetPeer peer, string key)
|
||
|
: base(peer, new DESCryptoServiceProvider())
|
||
|
{
|
||
|
SetKey(key);
|
||
|
}
|
||
|
|
||
|
public NetDESEncryption(NetPeer peer, byte[] data, int offset, int count)
|
||
|
: base(peer, new DESCryptoServiceProvider())
|
||
|
{
|
||
|
SetKey(data, offset, count);
|
||
|
}
|
||
|
}
|
||
|
}
|