mirror of
https://github.com/zccbbg/wms-ruoyi.git
synced 2024-09-20 03:05:53 +08:00
test: PasswordTest 增加密码生成代码
This commit is contained in:
parent
0e45dc9926
commit
8d22ca188c
|
@ -12,4 +12,11 @@ public class PasswordTest {
|
|||
boolean result = BCrypt.checkpw(password, encrypt);
|
||||
System.out.println(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGeneratePassword(){
|
||||
String password = "000000";
|
||||
String encrypt = BCrypt.hashpw(password, BCrypt.gensalt());
|
||||
System.out.println(encrypt);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue