test: PasswordTest 增加密码生成代码

This commit is contained in:
zccbbg 2024-09-03 10:23:25 +08:00
parent 0e45dc9926
commit 8d22ca188c

View file

@ -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);
}
}