From 60883147218577a3aa81127f628616d623402699 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期四, 27 十月 2022 15:09:32 +0800 Subject: [PATCH] RSA私钥格式转换 --- src/main/java/com/hx/util/rsa/RSAUtil.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hx/util/rsa/RSAUtil.java b/src/main/java/com/hx/util/rsa/RSAUtil.java index 45349a3..f874515 100644 --- a/src/main/java/com/hx/util/rsa/RSAUtil.java +++ b/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瘑澶辫触{}", e); + //logger.error("绉侀挜瑙e瘑澶辫触{}", e); } return null; } -- Gitblit v1.8.0