Package com.day.text

Class MD4

java.lang.Object
com.day.text.MD4

public class MD4 extends Object
MD4 digest algorithm. Not contained in the standard message digest implementations. Used by the Text.digest(java.lang.String, java.lang.String, java.lang.String) methods.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MD4()
    Create a new instance of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte[]
    digest(byte[] input)
    Utility method that makes a single update and then finishes.
    byte[]
    MD4 finalization.
    void
    update(byte[] input, int off, int len)
    Feed some more input.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MD4

      public MD4()
      Create a new instance of this class.
  • Method Details

    • update

      public void update(byte[] input, int off, int len)
      Feed some more input.
      Parameters:
      input - input block
      off - offset inside input block
      len - number of valid bytes
    • finish

      public byte[] finish()
      MD4 finalization. Ends an MD4 message-digest operation, writing the message digest.
      Returns:
      message digest
    • digest

      public static byte[] digest(byte[] input)
      Utility method that makes a single update and then finishes.
      Parameters:
      input - input
      Returns:
      digest digest