fhx
2023-11-16 d182dc7cd0ebd4b8dc4a8048e79a629209d2bf43
src/main/java/com/hx/util/rsa/RSAUtil.java
@@ -64,7 +64,8 @@
            byte[] bytes = cipher.doFinal(content.getBytes());
            return byte2Base64(bytes);
        } catch (Exception e) {
            logger.error("公钥加密失败{}", e);
            e.printStackTrace();
            //logger.error("公钥加密失败{}", e);
        }
        return null;
    }
@@ -77,7 +78,7 @@
            byte[] bytes = cipher.doFinal(base642Byte(content));
            return new String(bytes);
        } catch (Exception e) {
            logger.error("私钥解密失败{}", e);
            //logger.error("私钥解密失败{}", e);
        }
        return null;
    }