Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if((buffer.getByteBuffer().get() & 0xFF) != 10)
  2.             throw new MalformedPacketException("Invalid RSA Check");
  3.         clientkey = buffer.getByteBuffer().getLong();
  4.         serverkey = buffer.getByteBuffer().getLong();
  5.         uid = buffer.getByteBuffer().getInt();
  6.         credentials.setUsername(buffer.getString());
  7.         credentials.setPassword(buffer.getString());
  8.         System.out.println(credentials.getUsername());
  9.         System.out.println(credentials.getPassword(false));