private static void printException(Exception e, boolean debug) {
        if (e != null) {
            LOG.info("");
            if (debug) {
                LOG.info("Error: ");
                e.printStackTrace(System.out);
                LOG.info(e.getMessage());

            } else {
                LOG.info("Error: " + e.getMessage());
                LOG.info("");
                LOG.info("Specify -d or --debug for more information.");
            }
        }
    }
Commandline line utility to hash data such as strings, passwords, resources (files, urls, etc.).
<p/>
Usage:
<pre>
java -jar shiro-tools-hasher<em>-version</em>-cli.jar
</pre>
This will print out all supported options with documentation.

@since 1.2
tools/hasher/src/main/java/org/apache/shiro/tools/hasher/Hasher.java