I can’t make MessageDigest work, the program gives me two error:
UnsupportedEncodingException, NoSuchAlgorithmException
byte[] bytesOfchat_key = "lol".getBytes("UTF-8");
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] Digest = md.digest(bytesOfchat_key);
If I throw the errors, it give me ワᄡ9ᅦヌnp>0xdz as response ( 16 chars )
PS: I have used to print the Digest
for (byte b : Digest) {
System.out.print((char)b);
}
md5 returns hexadecimal numbers, so for decoding it to a String you could use