我正在从php平台迁移到Java。我的数据库充满了用户,并在数据加密标准(DES)中存储了密码。我通常会使用自定义authenticationService做这样的事情:
@Autowired private AuthenticationServiceImpl authenticationService; @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(authenticationService) .passwordEncoder(new BCryptPasswordEncoder()); }
显然不能与bCrypt一起使用。有什么建议