private static boolean isTerminal(java.io.Console console) {
        try {
            // isTerminal() is only available in Java 22 or later
            return console != null && (Boolean) console.getClass().getMethod("isTerminal").invoke(console);
        } catch (ReflectiveOperationException e) {
            return true;
        }
    }
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