jonelo.jacksum.algorithm

Class MD


public class MD
extends AbstractChecksum

A wrapper class that can be used to compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 (provided by your JVM vendor).

Constructor Summary

MD(String arg)

Method Summary

byte[]
getByteArray()
void
reset()
String
toString()
void
update(byte b)
void
update(byte[] buffer, int offset, int len)
void
update(int b)

Constructor Details

MD

public MD(String arg)
            throws NoSuchAlgorithmException

Method Details

getByteArray

public byte[] getByteArray()

reset

public void reset()

toString

public String toString()

update

public void update(byte b)

update

public void update(byte[] buffer,
                   int offset,
                   int len)

update

public void update(int b)