diff --git a/ruoyi-admin-wms/src/test/java/com/ruoyi/test/PasswordTest.java b/ruoyi-admin-wms/src/test/java/com/ruoyi/test/PasswordTest.java index 46cbf09..a05d103 100644 --- a/ruoyi-admin-wms/src/test/java/com/ruoyi/test/PasswordTest.java +++ b/ruoyi-admin-wms/src/test/java/com/ruoyi/test/PasswordTest.java @@ -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); + } }