Commit b5859fa 1 parent 9faaa41 commit b5859fa Copy full SHA for b5859fa
File tree 1 file changed +0
-4
lines changed
src/main/java/cc/baka9/catseedlogin/util
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 1
1
package cc .baka9 .catseedlogin .util ;
2
2
3
- import java .security .SecureRandom ;
4
3
import java .text .SimpleDateFormat ;
5
4
import java .util .Date ;
6
- import java .util .Random ;
7
5
import java .util .regex .Pattern ;
8
6
import org .apache .commons .lang3 .RandomStringUtils ;
9
7
10
8
public class Util {
11
9
private static final Pattern passwordDifficultyRegex = Pattern .compile ("^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$" );
12
10
private static final SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss" );
13
- private static final Random random = new SecureRandom ();
14
-
15
11
public static boolean passwordIsDifficulty (String pwd ) {
16
12
return !passwordDifficultyRegex .matcher (pwd ).find ();
17
13
}
You can’t perform that action at this time.
0 commit comments