Skip to content

Commit bf018cf

Browse files
committed
ab
1 parent bbf5043 commit bf018cf

File tree

2 files changed

+36
-45
lines changed

2 files changed

+36
-45
lines changed

.idea/workspace.xml

Lines changed: 36 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/bupin/frank/RSAUtil.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,16 @@
1313

1414
public class RSAUtil {
1515
// private static int MAX_ENCRIPT_SIZE = 245;
16-
//
1716
// public static void main(String[] args) throws Exception {
1817
// String algorithm = "RSA";
1918
// String input = "frank";
2019
//// generateKeys(algorithm, "test.pri", "test.pub");
21-
//
2220
// PrivateKey privateKey = getPrivateKey("test.pri", algorithm);
2321
// PublicKey publicKey = getPublicKey("test.pub", algorithm);
24-
//
2522
// String encryptData = RSAEncrypt(algorithm, privateKey, input, 245);
2623
// System.out.println("encryptData###" + encryptData+"###");
27-
//
2824
// String decryptData = RSADecrypt(algorithm, publicKey, encryptData, 256);
2925
// System.out.println("decryptData=" + decryptData);
30-
//
3126
// }
3227

3328
public static PrivateKey getPrivateKey(String priPath, String algorithm) throws Exception {

0 commit comments

Comments
 (0)