com.funambol.util
Class MD5

java.lang.Object
  extended by com.funambol.util.MD5

public class MD5
extends java.lang.Object


Constructor Summary
MD5()
          Standard constructor
 
Method Summary
 byte[] calculateMD5(byte[] input)
          calculate md5 of given byte array
 byte[] computeMD5Credentials(java.lang.String username, java.lang.String password, byte[] nonce)
          compute md5 credentials We expect the nonce to be not B64 encoded
 int doFinal(byte[] out, int outOff)
           
 void finish()
           
protected  void processBlock()
           
protected  void processLength(long bitLength)
           
protected  void processWord(byte[] in, int inOff)
           
 void reset()
           
 void update(byte in)
           
 void update(byte[] in, int inOff, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5

public MD5()
Standard constructor

Method Detail

update

public void update(byte in)

update

public void update(byte[] in,
                   int inOff,
                   int len)

finish

public void finish()

reset

public void reset()

processWord

protected void processWord(byte[] in,
                           int inOff)

processLength

protected void processLength(long bitLength)

doFinal

public int doFinal(byte[] out,
                   int outOff)

processBlock

protected void processBlock()

calculateMD5

public byte[] calculateMD5(byte[] input)
calculate md5 of given byte array

Parameters:
input - the byte array to be hashed
Returns:
the md5 checksum of input

computeMD5Credentials

public final byte[] computeMD5Credentials(java.lang.String username,
                                          java.lang.String password,
                                          byte[] nonce)
compute md5 credentials We expect the nonce to be not B64 encoded



Copyright © 2006 Funambol.