From 22a5ad3acef0bfb8353dac64d4cbe0d52f6d2a07 Mon Sep 17 00:00:00 2001 From: jack <jack.su@pollex.com.tw> Date: 星期五, 01 九月 2023 10:16:41 +0800 Subject: [PATCH] [UPDATE] 解決弱點Use of hard-coded cryptographic key , 把key移到設定檔 --- pamapi/src/main/java/com/pollex/pam/config/ApplicationProperties.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/config/ApplicationProperties.java b/pamapi/src/main/java/com/pollex/pam/config/ApplicationProperties.java index d692e29..371b675 100644 --- a/pamapi/src/main/java/com/pollex/pam/config/ApplicationProperties.java +++ b/pamapi/src/main/java/com/pollex/pam/config/ApplicationProperties.java @@ -26,6 +26,7 @@ private SendSMSProperties sms; private SendEmailProperties email; private String fileFolderPath; + private String aesKey; public boolean isMockLogin() { return mockLogin; @@ -114,5 +115,16 @@ public void setFileFolderPath(String fileFolderPath) { this.fileFolderPath = fileFolderPath; } + + @Override + public String getAesKey() { + return aesKey; + } + + public void setAesKey(String aesKey) { + this.aesKey = aesKey; + } + + } -- Gitblit v1.8.0