Ensure you have access to the shiro-tools-hasher-2.0.6-cli.jar file.
You can either find this in a source build in the buildroot`/tools/hasher/target` directory or via download through Maven.
# Use the following to download from Maven Central into
# ~/.m2/repository/org/apache/shiro/tools/shiro-tools-hasher/2.0.6/shiro-tools-hasher-2.0.6-cli.jar
$ mvn dependency:get -DgroupId=org.apache.shiro.tools -DartifactId=shiro-tools-hasher -Dclassifier=cli -Dversion=2.0.6
Once you have access to the jar, you can run the following command:
$ java -jar shiro-tools-hasher-2.0.6-cli.jar
This will print all available options for both standard (SHA-256, SHA-256) and more complex password hashing scenarios.
|
|
Older algorithms such as MD5 and SHA-1 are no longer available since Shiro 2.0+ due to security concerns.
|