I understand how it works but if I want to print out the MD5 as String how would I do that?
public static void getMD5(String fileName) throws Exception{
With the byte array, result from message digest:
... byte hashgerado[] = md.digest(entrada); ... for(byte b : hashgerado) System.out.printf("%02x", Byte.toUnsignedInt(b));
Result (for example): 89e8a9f68ad3c4bba9b9d3581cf5201d