jonelo.jacksum.adapt.gnu.crypto.hash

Class MD5


public class MD5
extends BaseHash

The MD5 message-digest algorithm takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input. It is conjectured that it is computationally infeasible to produce two messages having the same message digest, or to produce any message having a given prespecified target message digest.

References:

  1. The MD5 Message- Digest Algorithm.
    R. Rivest.

Constructor Summary

MD5()
Trivial 0-arguments constructor.

Method Summary

Object
clone()
protected byte[]
getResult()
protected byte[]
padBuffer()
protected void
resetContext()
boolean
selfTest()
protected void
transform(byte[] in, int i)

Constructor Details

MD5

public MD5()
Trivial 0-arguments constructor.

Method Details

clone

public Object clone()

getResult

protected byte[] getResult()

padBuffer

protected byte[] padBuffer()

resetContext

protected void resetContext()

selfTest

public boolean selfTest()

transform

protected void transform(byte[] in,
                         int i)