sha256Matcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher
sha256Matcher.storedCredentialsHexEncoded = false
sha256Matcher.hashIterations = 1024
sha256Matcher.hashSalted = true
这个加密算法storedCredentialsHexEncoded把false改为true就没办法登陆了,至于要改的原因是因为报了一个
org.apache.shiro.crypto.CryptoException: Unable to execute 'doFinal' with cipher instance
错误,别个推荐的做法是把这个改为true,我改了就登陆失败了。。