//1.设置加盐常量
例:public static final String USER_SLAT = "b2cstore";
标签:String,处理,加盐,USER,employee,password,MD5 From: https://www.cnblogs.com/xiaofangogogo/p/16903448.html
//2.获取密码进行MD5加密,并加盐处理
String password = employee.getPassword();
password = DigestUtils.md5DigestAsHex(password.getBytes());
password += DigestUtils.md5DigestAsHex(UserConstan.USER_SLAT.getBytes());
employee.setPassword(password);