try { String s="nomprenom"; MessageDigest hachage = MessageDigest.getInstance("MD5"); hachage.update(s.getBytes(), 0, s.length()); BigInteger anonyme=new BigInteger(hachage.digest()).abs(); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); }