Class HexFormat

  • All Implemented Interfaces:
    HashFormat

    public class HexFormat
    extends Object
    implements HashFormat
    HashFormat that outputs only The hash's digest bytes in hex format. It does not print out anything else (salt, iterations, etc). This implementation is mostly provided as a convenience for command-line hashing.
    Since:
    1.2
    • Method Detail

      • format

        public String format​(Hash hash)
        Returns hash != null ? hash.toHex() : null.
        Specified by:
        format in interface HashFormat
        Parameters:
        hash - the hash instance to format into a String.
        Returns:
        hash != null ? hash.toHex() : null.