jhplot.security
Class MD5

java.lang.Object
  extended by jhplot.security.MD5

public class MD5
extends Object

Get MD5 hash for any object or a file with data


Constructor Summary
MD5(File f)
          Initialize MD5 calculations for a file
MD5(Object o)
          Initialize MD5 calculations
 
Method Summary
 String get()
          Returns 32-character hex representation of this objects hash
 byte[] getData()
          Get data as stream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5

public MD5(Object o)
Initialize MD5 calculations

Parameters:
o - input object

MD5

public MD5(File f)
Initialize MD5 calculations for a file

Parameters:
f - input file
Method Detail

get

public String get()
Returns 32-character hex representation of this objects hash

Parameters:
String - of this object's hash

getData

public byte[] getData()
Get data as stream

Returns:
data


jHepWork 3.1 ©