Commit b4fc4f1c by 陶光胜

Merge branch 'developer' of…

Merge branch 'developer' of http://115.159.76.241/base_platform_enterprise/gic-enterprise-base into developer
parents 90dd1aca eb9a8420
package com.gic.enterprise.utils;
import com.gic.commons.util.Md5Util;
public class AutoCreatePasswordUtils {
/**
* 自动生成length位中英文密码
* @Title: autoCreatePassword

* @Description:

 * @author guojuxing
* @param length

* @return java.lang.String


 */
public static String autoCreatePassword(int length) {
String password = CreateRandomUtils.generateNumberStr(length);
return encryptPassword(password);
}
public static String encryptPassword(String password) {
Md5Util md5 = new Md5Util();
return md5.encrypt(password + password);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment