de.knup.jedi.jayshare
Class HashWrapper

java.lang.Object
  |
  +--de.knup.jedi.jayshare.HashWrapper

public class HashWrapper
extends java.lang.Object

Uses w3c implementation of the MD5 algo. Created: Wed Jan 23 14:45:42 2002

Version:
0.1 $Revision: 1.4 $
Author:
Lukas Kolbe

Constructor Summary
HashWrapper()
           
 
Method Summary
static java.lang.String getHash(java.io.File file)
          Calculate an MD5 hash of a file
static java.lang.String getHash(java.lang.String from)
          Calculate an MD5 hash of a String
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

HashWrapper

public HashWrapper()
Method Detail

getHash

public static java.lang.String getHash(java.lang.String from)
Calculate an MD5 hash of a String
Parameters:
from - is the String to be calculated
Returns:
the MD5 hash

getHash

public static java.lang.String getHash(java.io.File file)
                                throws java.io.IOException
Calculate an MD5 hash of a file
Parameters:
file - is the file to be calculated
Returns:
the MD5 hash
Throws:
java.io.IOException -