引入依赖
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.7.5</version>
</dependency>
MD5加密
public static void main(String[] args) {
String s = SecureUtil.md5("123456");
log.info(s);
MD5 md5 = new MD5();
String s1 = md5.digestHex("123456");
log.info(s1);
// 两个结果一样
}
标签:123456,加密,String,hutool,java,MD5,md5
From: https://www.cnblogs.com/Fantasyfzg/p/16954673.html