org.xbill.DNS.utils
Class md5

java.lang.Object
  extended byorg.xbill.DNS.utils.md5

public final class md5
extends Object

A pure java implementation of the MD5 digest algorithm

Author:
Brian Wellington

Method Summary
static byte[] compute(byte[] data)
          Compute the MD5 digest of a block of data.
static byte[] compute(byte[] data, int start, int len)
          Compute the MD5 digest of a block of data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compute

public static byte[] compute(byte[] data,
                             int start,
                             int len)
Compute the MD5 digest of a block of data.

Parameters:
data - The data
start - The index at which to start digesting
len - The number of bytes to digest
Returns:
The MD5 digest (a 16 byte array)

compute

public static byte[] compute(byte[] data)
Compute the MD5 digest of a block of data.

Parameters:
data - The data
Returns:
The MD5 digest (a 16 byte array)