Class MD5

java.lang.Object
com.yahoo.collections.MD5

public class MD5 extends Object
Convenience class for hashing a String with MD5, and either returning an int with the 4 LSBytes, or the whole 12-byte MD5 hash.

Note that instantiating this class can be expensive, so re-using instances is a good idea.

This class is not thread safe.

Author:
Einar M R Rosenvinge
  • Field Details

  • Constructor Details

    • MD5

      public MD5()
  • Method Details

    • hash

      public int hash(String s)
    • hashFull

      public byte[] hashFull(String s)