Hi i wanted to know the java equivalent api for perl method Digest::MD5 md5($data) since it's output is in binary i am not able to compare it with java output. so far i have this java code MessageDigest.getInstance("MD5").digest($data) which returns byte[].