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); }
本文介绍使用Shiro权限框架时,如何通过MD5算法加密密码,并提供了具体代码实现,包括设置加密算法名称、密码、加密次数等参数。
590

被折叠的 条评论
为什么被折叠?



