jhplot.security
Class MD5

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

public class MD5
extends java.lang.Object

Get MD5 hash for any object or a file with data


Constructor Summary
MD5(java.io.File f)
          Initialize MD5 calculations for a file
MD5(java.lang.Object o)
          Initialize MD5 calculations
 
Method Summary
 java.lang.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(java.lang.Object o)
Initialize MD5 calculations

Parameters:
o - input object

MD5

public MD5(java.io.File f)
Initialize MD5 calculations for a file

Parameters:
f - input file
Method Detail

get

public java.lang.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 2.1 (C) S.Chekanov