We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50c215c commit cd04641Copy full SHA for cd04641
1 file changed
src/test/java/com/fengwenyi/javalib/RSAUtilsTest.java
@@ -4,6 +4,8 @@
4
import com.fengwenyi.javalib.encryption.RSAUtils;
5
import org.junit.Test;
6
7
+import java.security.NoSuchAlgorithmException;
8
+
9
/**
10
* @author ycq
11
* @since 2019/6/27 11:41
@@ -41,4 +43,13 @@ public void ras(){
41
43
}
42
44
45
46
+ @Test
47
+ public void generateKeys() throws NoSuchAlgorithmException {
48
+ String[] key = RSAUtils.getKey();
49
+ String rsaPrivateKey = key[0];
50
+ String rsaPublicKey = key[1];
51
+ PrintUtils.info("rsaPrivateKey: "+rsaPrivateKey);
52
+ PrintUtils.info("rsaPublicKey: "+rsaPublicKey);
53
+ }
54
55
0 commit comments