String hashed = null; BigInteger hash; try { MessageDigest md5 = MessageDigest.getInstance("MD5"); md5.update(password.getBytes()); hash = new BigInteger(1, md5.digest()); hashed = hash.toString(16); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } return hashed; } /** ...