public void Handle(TcpClient tcpClient) { byte[] key = BlowFishKeygen.GetRandomKey(); var crypt = new GameCrypt(key); var connection = new L2Connection(tcpClient, crypt); var loginClient = new GameClient(connection); clients.Add(loginClient); }
public byte[] EnableCrypt() { byte[] key = BlowFishKeygen.GetRandomKey(); _crypt.SetKey(key); return(key); }