@ThreadSafe public class RandCode extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RandCode.Seed |
| Modifier and Type | Field and Description |
|---|---|
static RandCode.Seed |
Low |
static RandCode.Seed |
Num |
static RandCode.Seed |
Sym |
static RandCode.Seed |
Upr |
| Constructor and Description |
|---|
RandCode() |
| Modifier and Type | Method and Description |
|---|---|
static String |
human(int len)
生成len长度的字母大小写和数字可读性好的密码
|
static String |
letter(int len)
生成len长度的字母大小写密码
|
static String |
lower(int len)
生成len长度的字母小写密码
|
static String |
next(int len,
RandCode.Seed... seeds) |
static String |
next(int len,
Random random,
RandCode.Seed... seeds) |
static String |
number(int len)
生成len长度的数字密码
|
static String |
numlet(int len)
生成len长度的字母大小写和数字密码
|
static String |
strong(int len)
生成len长度的字母大小写和数字符号密码
|
static String |
upper(int len)
生成len长度的字母大写密码
|
public static final RandCode.Seed Num
public static final RandCode.Seed Low
public static final RandCode.Seed Upr
public static final RandCode.Seed Sym
public static String number(int len)
len - 长度public static String lower(int len)
len - 长度public static String upper(int len)
len - 长度public static String letter(int len)
len - 长度public static String numlet(int len)
len - 长度public static String strong(int len)
len - 长度public static String human(int len)
len - 长度public static String next(int len, RandCode.Seed... seeds)
public static String next(int len, Random random, RandCode.Seed... seeds)
Copyright © 2020. All rights reserved.