remove DigestUtil, add equals and hashCode