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);
    }
 

 

相关文章:

  • 2021-04-25
  • 2021-10-28
  • 2021-05-23
  • 2021-08-28
  • 2021-06-17
  • 2021-11-09
  • 2021-07-11
猜你喜欢
  • 2021-04-21
  • 2021-12-15
  • 2021-11-22
  • 2022-01-01
  • 2021-09-11
  • 2021-08-26
  • 2021-06-11
相关资源
相似解决方案