@ -59,7 +59,7 @@ public class GovWebController {
* @date 2021/3/8 5:07 下午
*/
@PostMapping("getKey")
public Result<String> getResiWxPhone() {
public Result<String> getPubKey() {
return new Result().ok(publicKey);
}
@ -237,7 +237,7 @@ public class RSASignature {
String s2 = RSASignature.decryptByPublicKey(s1, publicKey);
System.out.println("解密后的数据:" + s2 + "\n\n");
//=====
{
System.out.println("\n===========公钥加密,私钥解密==============");
String s1 = RSASignature.encryptByPublicKey(data, publicKey);