OyvindLGjesdal commented on issue #2617: URL: https://github.com/apache/jena/issues/2617#issuecomment-2281429482
This is a working example: **using command line hasher:** (https://shiro.apache.org/command-line-hasher.html) ```bash # change shiro version to current version in case of updated/improved defaults export SHIRO_VERSION=2.0.1 # download shiro-tools-hasher to local repository mvn dependency:get -DgroupId=org.apache.shiro.tools -DartifactId=shiro-tools-hasher -Dclassifier=cli -Dversion=$SHIRO_VERSION ``` ```console # output [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- dependency:3.7.0:get (default-cli) @ standalone-pom --- [INFO] Resolving org.apache.shiro.tools:shiro-tools-hasher:jar:cli:2.0.1 with transitive dependencies [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.802 s [INFO] Finished at: 2024-08-10T13:25:46+02:00 [INFO] ------------------------------------------------------------------------ ``` ```bash # for more fine-grained control of configuring consult the shiro-tools-hasher docs, or run it with no parameters to list options # run shiro-tools-hasher from local repository java -jar ~/.m2/repository/org/apache/shiro/tools/shiro-tools-hasher/${SHIRO_VERSION}/shiro-tools-hasher-{SHIRO_VERSION}-cli.jar -p ``` ``` # cli prompts for password using the default configurations # "pw" used as input in this example *Password to hash: * *Password to hash (confirm): * ``` ``` # output *$shiro2$argon2id$v=19$t=1,m=65536,p=4$Wr/2XKxWeYZt8JE5HCONQw$yev4bLiGzbeIZ8qDWrIY7J2msL2vRO/aYksb4RMeX7Y* ``` **shiro.ini** ``` [main] passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher iniRealm.credentialsMatcher = $passwordMatcher [users] # quote is required around the supplied string for shiro to properly parse parameters example="$shiro2$argon2id$v=19$t=1,m=65536,p=4$Wr/2XKxWeYZt8JE5HCONQw$yev4bLiGzbeIZ8qDWrIY7J2msL2vRO/aYksb4RMeX7Y" [urls] /** = authcBasic,user[example] ``` Since unencrypted still works, should both versions be present and commented in the ini files and the docs, or should the current configuration be replaced? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
