cryptix
Class HashMD5

java.lang.Object
  |
  +--cryptix.MessageHash
        |
        +--cryptix.HashMD5

public final class HashMD5
extends MessageHash

This class represents the output of a MD5 message digestor.

Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/) All rights reserved.


Constructor Summary
HashMD5(byte[] hash)
          Creates this from a byte array that must be of the correct length
HashMD5(MD5 md)
          Creates this from a MD5 message digestor.
 
Method Summary
 java.lang.String toString()
          Returns a big endian Hex string prefixed with "MD5:", showing the value of the hash.
 
Methods inherited from class cryptix.MessageHash
equals, equalTo, hashCode, length, toByteArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashMD5

public HashMD5(MD5 md)
Creates this from a MD5 message digestor.
Parameters:
md - A MD5 message digestor.

HashMD5

public HashMD5(byte[] hash)
Creates this from a byte array that must be of the correct length
Parameters:
hash - A byte array which represents a MD5 hash.
Method Detail

toString

public java.lang.String toString()
Returns a big endian Hex string prefixed with "MD5:", showing the value of the hash.
Overrides:
toString in class MessageHash
Returns:
a string reprosenting the hash.