List of usage examples for org.apache.commons.codec.binary Hex Hex
public Hex(String csName)
From source file:org.apache.metron.stellar.common.utils.hashing.DefaultHasher.java
/** * Builds a utility to hash values based on a given algorithm. Uses {@link StandardCharsets#UTF_8} for encoding. * @param algorithm The algorithm used when hashing a value. * @see java.security.Security/*from www.ja v a 2 s .c om*/ * @see java.security.MessageDigest */ public DefaultHasher(final String algorithm) { this(algorithm, new Hex(StandardCharsets.UTF_8)); }