Sleuth Kit Java Bindings (JNI)  4.3
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.HashUtility Class Reference

Static Public Member Functions

static String calculateMd5 (AbstractFile file) throws IOException
static boolean isNoDataMd5 (String md5)

Static Private Attributes

static final int BUFFER_SIZE = 16 * 1024

Detailed Description

Utility to calculate a hash for FsContent and store in TSK database

Definition at line 32 of file

Member Function Documentation

static String org.sleuthkit.datamodel.HashUtility.calculateMd5 ( AbstractFile  file) throws IOException

Calculate the MD5 hash for the given FsContent and store it in the database

filefile object whose md5 hash we want to calculate
md5 of the given FsContent object

Definition at line 44 of file

References org.sleuthkit.datamodel.HashUtility.BUFFER_SIZE.

static boolean org.sleuthkit.datamodel.HashUtility.isNoDataMd5 ( String  md5)

Determine if the passed in Hash value is that for no data (i.e. an empty file). Looking these values up or correlating on them causes lots of false positives.

True if it is the empty hash value

Definition at line 83 of file

Member Data Documentation

final int org.sleuthkit.datamodel.HashUtility.BUFFER_SIZE = 16 * 1024

Definition at line 34 of file

Referenced by org.sleuthkit.datamodel.HashUtility.calculateMd5().

The documentation for this class was generated from the following file:

Copyright © 2011-2015 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.