Skip to content

Commit

Permalink
Merge branch 'develop-1.10.0' of https://github.com/FederatedAI/FATE-…
Browse files Browse the repository at this point in the history
…Board into develop-1.10.0
  • Loading branch information
idwenwen committed Dec 21, 2022
2 parents 6905d33 + df3fd8a commit 0f1c51a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/webank/ai/fate/board/utils/RSAUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();//得到私钥
Expand Down

0 comments on commit 0f1c51a

Please sign in to comment.