加密密码方法:
import org.apache.commons.codec.digest.DigestUtils; public class MD5Util { private static final String salt = "加盐"; public static String crypt(String pwd) { return DigestUtils.md5Hex(pwd + salt); } }
标签:commons codec post nal private alt div comm string
加密密码方法:
import org.apache.commons.codec.digest.DigestUtils; public class MD5Util { private static final String salt = "加盐"; public static String crypt(String pwd) { return DigestUtils.md5Hex(pwd + salt); } }
标签:commons codec post nal private alt div comm string
原文地址:https://www.cnblogs.com/suhfj-825/p/8260640.html