|
@@ -37,7 +37,7 @@ public class RsaUtils {
|
|
System.out.println("公钥:"+publicKey);
|
|
System.out.println("公钥:"+publicKey);
|
|
System.out.println("私钥:"+privateKey);
|
|
System.out.println("私钥:"+privateKey);
|
|
|
|
|
|
- String ciphertext = rsa.encipher("4DKKPRO_0292D9F77", publicKey);
|
|
|
|
|
|
+ String ciphertext = rsa.encipher("4DKKPRO_022677E21", 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);
|
|
System.out.println(deTxt);
|
|
System.out.println(deTxt);
|