Skip to content

Instantly share code, notes, and snippets.

import java.security.MessageDigest
import java.io.*
/**
* Determine the MD5 or SHA1Sum of a file:
*
* println Checksum.getMD5sum(new File("file.bin"))
* println Checksum.getSHA1sum(new File("file.bin"))
*
* @author: Marcel Maatkamp (m.maatkamp avec gmail dot com)