shiro 权限引用时用以前的代码框架

发现忘记加密后的密码:

解决:下面基于配置文件,将新的密码密文替换以前的即可

    public static void main(String[] args) {
        String hashAlgorithmName = "MD5";//加密
        String credentials = "123456";//密码
        int hashIterations = 1024; //加密次数
           
        Object obj = new SimpleHash(hashAlgorithmName, credentials, null, hashIterations);//null 为盐
        System.out.println(obj);
    }
 

 

posted on 2018-12-02 15:32  JSBK  阅读(1208)  评论(0编辑  收藏  举报