1 字符串转MD5
1.1 引入maven
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.11</version>
</dependency>
1.2 使用 (org.apache.commons.codec.digest.DigestUtils)
String pwdMd5 = DigestUtils.md5Hex(pwd);
1 字符串转MD5
1.1 引入maven
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.11</version>
</dependency>
1.2 使用 (org.apache.commons.codec.digest.DigestUtils)
String pwdMd5 = DigestUtils.md5Hex(pwd);