org.linkedin.util-core/src/main/java/org/linkedin/util/codec/OneWayMessageDigestCodec.java
@Override
  public String encode(byte[] byteArray)
  {
    MessageDigest md = null;

    try
    {
      md = (MessageDigest) _md.clone();
    }
    catch(CloneNotSupportedException e)
    {
      // should not happen... already tested in constructor!!
      throw new RuntimeException(e);
    }

    return _codec.encode(md.digest(byteArray));
  }
@Override
  public String encode(byte[] byteArray)
  {
    MessageDigest md = null;

    try
    {
      md = (MessageDigest) _md.clone();
    }
    catch(CloneNotSupportedException e)
    {
      // should not happen... already tested in constructor!!
      throw new RuntimeException(e);
    }

    return _codec.encode(md.digest(byteArray));
  }
Encode the array into a <code>String</code>

@param byteArray the array to encode
@return the encoded <code>String</code>