Hai ragione scusa:
così dovrebbe essere perfetto.codice:public static String OttieniMD5(String input) throws UnsupportedEncodingException, NoSuchAlgorithmException { MessageDigest md = MessageDigest.getInstance("MD5"); byte[] messageDigest = md.digest(input.getBytes("UTF-8")); StringBuilder buf = new StringBuilder(messageDigest.length * 2); for (byte b : messageDigest) { buf.append(String.format("%02x", b)); } return buf.toString(); }
Mille grazie


Rispondi quotando