admin-web 接入新的登陆接口

This commit is contained in:
YunaiV
2020-07-04 21:35:15 +08:00
parent 41514100e0
commit d89e5bad98
4 changed files with 15 additions and 37 deletions

View File

@@ -15,4 +15,12 @@ public class DigestUtils {
return BCrypt.hashpw(key, salt);
}
// TODO 稍后移到单元测试
public static void main(String[] args) {
String salt = genBcryptSalt();
String password = "buzhidao";
System.out.println(salt);
System.out.println(bcrypt(password, salt));
}
}