From aab415bf00e6f3c43cd61f808ca1603e1ce38dbc Mon Sep 17 00:00:00 2001 From: jaewohong Date: Thu, 6 Nov 2025 12:03:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=94=ED=98=B8=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 9 ++++++++- .../com/kjbank/encrypt/exchange/crypto/AES256Cipher.java | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 8661322..2683ed4 100644 --- a/build.gradle +++ b/build.gradle @@ -9,14 +9,21 @@ plugins { group 'com.eactive' version '4.5.1-SNAPSHOT' +def nexusUrl = "https://nexus.eactive.synology.me:8090" + def springVersion = "5.3.27" //def quartzVersion = "2.2.1" def queryDslVersion = "5.0.0" def hibernateVersion = "5.6.15.Final" -def nexusUrl = "https://nexus.eactive.synology.me:8090" def generatedJavaDir = "$buildDir/generated/java" +repositories { + maven { + url "${nexusUrl}/repository/maven-public/" + allowInsecureProtocol = true + } +} java { toolchain { languageVersion = JavaLanguageVersion.of(8) diff --git a/src/main/java/com/kjbank/encrypt/exchange/crypto/AES256Cipher.java b/src/main/java/com/kjbank/encrypt/exchange/crypto/AES256Cipher.java index 38e1f6f..4e79539 100644 --- a/src/main/java/com/kjbank/encrypt/exchange/crypto/AES256Cipher.java +++ b/src/main/java/com/kjbank/encrypt/exchange/crypto/AES256Cipher.java @@ -24,7 +24,7 @@ public class AES256Cipher { //private static final Logger logger = Logger.getLogger(AES256Cipher.class); static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT); private static final String IV_STRING = "A-16-Byte-String"; - + public static String encrypt(String inPlainText, String inKey) throws NoSuchAlgorithmException, IllegalBlockSizeException, InvalidKeyException, BadPaddingException, InvalidAlgorithmParameterException, NoSuchPaddingException { @@ -183,6 +183,8 @@ public class AES256Cipher { return resultData; } + + }