Created
July 16, 2018 09:09
-
-
Save mathieucarbou/5d1953d0ea69e6c5564da5ed2f1b7bb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static String md5(File file) throws IOException, NoSuchAlgorithmException { | |
return DatatypeConverter.printHexBinary(MessageDigest.getInstance("MD5").digest(Files.readAllBytes(file.toPath()))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment