Md5 util
Md5PasswordEncoder.java
需要引入
<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version>4.1.1.RELEASE</version> </dependency>
用法举例:
@Test public void tt(){ Md5PasswordEncoder md5 = new Md5PasswordEncoder(); System.out.println(md5.encodePassword("123456", null)); }