0

我的配置设置如下以利用 MD5 加密。

<authentication-manager >
    <authentication-provider user-service-ref="userDetailsService" >
    <password-encoder ref="passwordEncoder"/>
    </authentication-provider>
</authentication-manager>


<beans:bean class="org.springframework.security.authentication.encoding.Md5PasswordEncoder" id="passwordEncoder"/>

据我了解,根据https://www.rfc-editor.org/rfc/rfc2617#section-3.2.1,MD5 应该是默认的加密算法。但是,由于客户的需要,我需要我们的服务器直接指定这一点。有人可以帮助我实现这一目标吗?

4

0 回答 0