diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48721008b..218565798 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,14 +17,8 @@ jobs: - name: check out the repo uses: actions/checkout@v2 - - name: compile node.js code - working-directory: resources-front-end - run: | - npm install - npm run build - - - name: compile java code - run: mvn clean package + - name: mvn compile + run: mvn -DskipTests clean package - name: archive artifacts uses: actions/upload-artifact@v2 diff --git a/src/main/java/com/webank/ai/fate/board/utils/RSAUtils.java b/src/main/java/com/webank/ai/fate/board/utils/RSAUtils.java index 3e1c9f439..749129c7c 100644 --- a/src/main/java/com/webank/ai/fate/board/utils/RSAUtils.java +++ b/src/main/java/com/webank/ai/fate/board/utils/RSAUtils.java @@ -20,7 +20,7 @@ public static class RSAKeyPair { public static RSAKeyPair getKeyPair() throws Exception{ KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance("RSA"); - keyPairGen.initialize(1024, new SecureRandom()); + keyPairGen.initialize(2048, new SecureRandom()); KeyPair keyPair = keyPairGen.generateKeyPair(); PrivateKey privateKey = keyPair.getPrivate(); PublicKey publicKey = keyPair.getPublic(); diff --git a/src/main/java/com/webank/ai/fate/board/utils/StandardRSAUtils.java b/src/main/java/com/webank/ai/fate/board/utils/StandardRSAUtils.java index 3ddde1713..e590e0c95 100644 --- a/src/main/java/com/webank/ai/fate/board/utils/StandardRSAUtils.java +++ b/src/main/java/com/webank/ai/fate/board/utils/StandardRSAUtils.java @@ -25,8 +25,7 @@ public class StandardRSAUtils { public static void getKeyPair() throws Exception { //KeyPairGenerator类用于生成公钥和密钥对,基于RSA算法生成对象 KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance("RSA"); - //初始化密钥对生成器,密钥大小为96-1024位 - keyPairGen.initialize(1024, new SecureRandom()); + keyPairGen.initialize(2048, new SecureRandom()); //生成一个密钥对,保存在keyPair中 KeyPair keyPair = keyPairGen.generateKeyPair(); PrivateKey privateKey = keyPair.getPrivate();//得到私钥