try {
md = MessageDigest.getInstance("MD5");
md.update(p.getPwd().getBytes(), 0, p.getPwd().length());
p.setPwd(new BigInteger(1, md.digest()).toString(16));
NetworkService.sendPacket(new Packet(EnumPacket.CLIENT_Login, p));
} catch (UnknownHostException e) {
c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));
new ServerErrorAction(c);
} catch (IOException e) {
c.getVerbose().addConsoleMsg(e, EnumSet.of(EnumVerbose.ToConsole, EnumVerbose.ToLog));