1、公钥和私钥这边已经匹配过了是正常的
2、使用RSA加密方法加密
String sign = new String(Base64.encodeBase64(RSAUtil.sign(inputContent, privateKeyCode)),"utf-8");
直接报错java.security.SignatureException: Could not sign data inputContent是需要加密的字符串转字节;privateKeyCode是RSA私钥转字节
1、公钥和私钥这边已经匹配过了是正常的
2、使用RSA加密方法加密
String sign = new String(Base64.encodeBase64(RSAUtil.sign(inputContent, privateKeyCode)),"utf-8");
直接报错java.security.SignatureException: Could not sign data inputContent是需要加密的字符串转字节;privateKeyCode是RSA私钥转字节