synergynetframework.utils.crypto
Class CryptoUtils

java.lang.Object
  extended by synergynetframework.utils.crypto.CryptoUtils

public class CryptoUtils
extends java.lang.Object

The Class CryptoUtils.


Constructor Summary
CryptoUtils()
           
 
Method Summary
static java.lang.String md5(java.io.File file)
          Md5.
static java.lang.String md5(java.lang.String s)
          Md5.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoUtils

public CryptoUtils()
Method Detail

md5

public static java.lang.String md5(java.io.File file)
                            throws java.security.NoSuchAlgorithmException,
                                   java.io.IOException
Md5.

Parameters:
file - the file
Returns:
the string
Throws:
java.security.NoSuchAlgorithmException - the no such algorithm exception
java.io.IOException - Signals that an I/O exception has occurred.

md5

public static java.lang.String md5(java.lang.String s)
                            throws java.security.NoSuchAlgorithmException
Md5.

Parameters:
s - the s
Returns:
the string
Throws:
java.security.NoSuchAlgorithmException - the no such algorithm exception