import org.springframework.util.DigestUtils;
public String encode(String pwd) {
return DigestUtils.md5DigestAsHex(pwd.getBytes());
}
import org.springframework.util.DigestUtils;
public String encode(String pwd) {
return DigestUtils.md5DigestAsHex(pwd.getBytes());
}
本文标题:使用DigestUtils的MD5加密
本文链接:https://www.haomeiwen.com/subject/bmlirctx.html
网友评论