Ejemplo n.º 1
0
 public void setKey( byte[] key )
 {
     m_Crypt = new NewCrypt(key);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes new instance of <see cref="UserConnection"/> class.
 /// </summary>
 /// <param name="socket">Connection <see cref="Socket"/>.</param>
 internal UserConnection( Socket socket )
     : base(socket)
 {
     Session = InitializeSession(( ( IPEndPoint )socket.RemoteEndPoint ).Address.ToString());
     m_Crypt = new NewCrypt(Session.BlowfishKey);
 }