Well, it seems like most documentation about shiro suggests to use the  shiro-tools-hasher-1.2.1-cli.jar to generate SHA256 hashed password for your application. I did not get this working at all, so i used another approach.

Just call:

println(new Sha256Hash(„your_password“))

SHAENCODEDSTRING

and add this to your shiro.ini:

[main]

sha256Matcher = org.apache.shiro.authc.credential.HashedCredentialsMatcher

sha256Matcher.hashAlgorithmName=SHA-256

iniRealm.credentialsMatcher = $sha256Matcher

[users]

user = SHAENCODEDSTRING