Sleuth Kit Java Bindings (JNI)  4.6.0
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 String calculateMd5Hash (Content content) throws IOException
 
static boolean isNoDataMd5 (String md5)
 

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
Exceptions
java.io.IOException
Deprecated:

Definition at line 96 of file HashUtility.java.

References org.sleuthkit.datamodel.HashUtility.calculateMd5Hash().

static String org.sleuthkit.datamodel.HashUtility.calculateMd5Hash ( Content  content) throws IOException
static

Calculate the MD5 hash for the given FsContent

Parameters
contentcontent object whose md5 hash we want to calculate
Returns
md5 of the given FsContent object
Exceptions
java.io.IOException

Definition at line 44 of file HashUtility.java.

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

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 80 of file HashUtility.java.


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

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