railo.commons.lang
Class Md5

java.lang.Object
  extended by railo.commons.lang.Md5

public final class Md5
extends Object

class to create a MD5 sum


Method Summary
static String getDigestAsString(byte[] barr)
          return md5 from byte array
static String getDigestAsString(InputStream in)
          return md5 from InputStream as string
static String getDigestAsString(String str)
          return md5 from string as string
static String stringify(byte[] digest)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stringify

public static String stringify(byte[] digest)

getDigestAsString

public static String getDigestAsString(byte[] barr)
                                throws IOException
return md5 from byte array

Parameters:
barr - byte array to get md5 from
Returns:
md5 from string
Throws:
IOException

getDigestAsString

public static String getDigestAsString(String str)
                                throws IOException
return md5 from string as string

Parameters:
str - plain string to get md5 from
Returns:
md5 from string
Throws:
IOException

getDigestAsString

public static String getDigestAsString(InputStream in)
                                throws IOException
return md5 from InputStream as string

Parameters:
in - The input stream to be digestified.
Returns:
md5 from string
Throws:
IOException


Copyright © 2012 Railo