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);
        }
示例#2
0
 public byte[] EnableCrypt()
 {
     byte[] key = BlowFishKeygen.GetRandomKey();
     _crypt.SetKey(key);
     return(key);
 }