curena
12/11/2015 - 3:57 PM

Get file md5 for checksum using Apache DigestUtils

Get file md5 for checksum using Apache DigestUtils

FileInputStream fis = new FileInputStream(new File("foo"));
String md5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);
fis.close()