railo.commons.digest
Class MD5

java.lang.Object
  extended by railo.commons.digest.MD5

public final class MD5
extends Object


Constructor Summary
MD5(byte[] bytes)
           
MD5(String input)
           
 
Method Summary
 String getDigest()
           
static String getDigestAsString(byte[] barr)
           
static String getDigestAsString(String str)
          return md5 from string as string
static String getDigestAsString(String str, String defaultValue)
           
static String stringify(byte[] digest)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5

public MD5(String input)
Parameters:
input -

MD5

public MD5(byte[] bytes)
Method Detail

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(byte[] barr)
                                throws IOException
Throws:
IOException

getDigestAsString

public static String getDigestAsString(String str,
                                       String defaultValue)

stringify

public static String stringify(byte[] digest)

getDigest

public String getDigest()
                 throws IOException
Returns:
return the digest
Throws:
IOException


Copyright © 2012 Railo