|
@@ -38,11 +38,7 @@ public class RsaUtils {
|
|
// System.out.println("私钥:"+privateKey);
|
|
// System.out.println("私钥:"+privateKey);
|
|
|
|
|
|
String ciphertext = rsa.encipher("{\n" +
|
|
String ciphertext = rsa.encipher("{\n" +
|
|
- " \"ryId\": 500,\n" +
|
|
|
|
- " \"message\": \"Stream closed\",\n" +
|
|
|
|
- " \"data\": null,\n" +
|
|
|
|
- " \"success\": false,\n" +
|
|
|
|
- " \"timestamp\": 1693293329143\n" +
|
|
|
|
|
|
+ " \"ryId\": \"ryId\"\n" +
|
|
"}", publicKey);
|
|
"}", publicKey);
|
|
System.out.println(String.format("密文:"+ciphertext));
|
|
System.out.println(String.format("密文:"+ciphertext));
|
|
String deTxt = rsa.decipher(ciphertext, privateKey);
|
|
String deTxt = rsa.decipher(ciphertext, privateKey);
|