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 HashUtility.java.

Member Function Documentation

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

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

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

Definition at line 44 of file HashUtility.java.

References org.sleuthkit.datamodel.HashUtility.BUFFER_SIZE.

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

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.

Parameters
md5
Returns
True if it is the empty hash value

Definition at line 83 of file HashUtility.java.

Member Data Documentation

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

Definition at line 34 of file HashUtility.java.

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.