public static byte [ ] fileHash ( File file , MessageDigest messageDigest ) throws IOException { return computeHash ( file , messageDigest , 0L , file . length ( ) ) ; }
Returns the hash value of the file for the specified messageDigest .