@Bean
public PasswordService getPasswordService() {
DefaultPasswordService service = new DefaultPasswordService();
DefaultHashService defaultHashService = new DefaultHashService();
// defaultHashService.setHashAlgorithmName("MD5");
// defaultHashService.setHashIterations(1);
service.setHashService(defaultHashService);
service.setHashFormat(new HexFormat());
return service;
}
shiro 修改默认加密方式
最新推荐文章于 2024-08-22 11:33:31 发布