Open SiteSearch 4.1.1
Final

ORG.oclc.ecat.util
Class MD5

java.lang.Object
  |
  +--ORG.oclc.ecat.util.MessageDigest
        |
        +--ORG.oclc.ecat.util.MD5

public final class MD5
extends MessageDigest

The MD5 class is used to compute an MD5 message digest over a given buffer of bytes. It is an implementation of the RSA Data Security Inc MD5 algorithim as described in internet RFC 1321.


Fields inherited from class ORG.oclc.ecat.util.MessageDigest
digestBits, digestValid
 
Constructor Summary
MD5()
          Standard constructor, creates a new MD5 instance, allocates its buffers from the heap.
MD5(byte[] mydigest)
          Alternate constructor, allows you to pass in the buffer where you want the resulting digest stored.
 
Method Summary
 void finish()
          Perform the final computations, any buffered bytes are added to the digest, the count is added to the digest, and the resulting digest is stored.
 void init()
          Initialize the MD5 state information and reset the bit count to 0.
 void update(byte b)
          update adds the passed type to the input buffer
 
Methods inherited from class ORG.oclc.ecat.util.MessageDigest
computeDigest, isEqual, isEqual, stringVal, toString, update, update, update, update, update, update, update, update, update, updateASCII
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MD5

public MD5()
Standard constructor, creates a new MD5 instance, allocates its buffers from the heap.

MD5

public MD5(byte[] mydigest)
Alternate constructor, allows you to pass in the buffer where you want the resulting digest stored.
Method Detail

init

public void init()
Initialize the MD5 state information and reset the bit count to 0. Given this implementation you are constrained to counting 2^64 bits.
Overrides:
init in class MessageDigest

update

public void update(byte b)
update adds the passed type to the input buffer
Overrides:
update in class MessageDigest

finish

public void finish()
Perform the final computations, any buffered bytes are added to the digest, the count is added to the digest, and the resulting digest is stored. After calling final you will need to call init() again to do another digest.
Overrides:
finish in class MessageDigest

Open SiteSearch 4.1.1
Final