Package com.luna.common.encrypt
Class CreateKeyUtils
java.lang.Object
com.luna.common.encrypt.CreateKeyUtils
- Author:
- luna
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getRandomKeys
(int intLength) 随机生成密码 默认都最小有1个getRandomKeys
(int intLength, int count) 随机个数的密码static String
getRandomKeys
(int intLength, int numbercaseMax, int lowercaseMax, int uppercaseMax, int strcaseMax) 生成指定长度的密码
-
Constructor Details
-
CreateKeyUtils
public CreateKeyUtils()
-
-
Method Details
-
getRandomKeys
随机生成密码 默认都最小有1个- Parameters:
intLength
-- Returns:
-
getRandomKeys
随机个数的密码- Parameters:
intLength
-count
-- Returns:
-
getRandomKeys
public static String getRandomKeys(int intLength, int numbercaseMax, int lowercaseMax, int uppercaseMax, int strcaseMax) 生成指定长度的密码- Parameters:
intLength
- 总长度numbercaseMax
- 数字个数lowercaseMax
- 小写字母uppercaseMax
- 大写字母strcaseMax
- 字符- Returns:
-