From 8c886f92fb48f9a5a0aa4cc80636016156b28295 Mon Sep 17 00:00:00 2001 From: cho Date: Tue, 3 Mar 2026 14:04:32 +0900 Subject: [PATCH] =?UTF-8?q?system=5Fout=5F=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/eactive/eai/common/seed/Seed.java | 2 +- .../eai/common/server/EAIServerManager.java | 6 ++--- .../eactive/eai/common/util/StringUtil.java | 26 +++++++++---------- .../eai/common/util/TypeConversion.java | 14 +++++----- .../eai/common/util/UUIDGenerator.java | 8 +++--- .../encrypt/exchange/crypto/AESCipher.java | 2 +- .../exchange/crypto/ECDHESA256Cipher.java | 8 +++--- 7 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/main/java/com/eactive/eai/common/seed/Seed.java b/src/main/java/com/eactive/eai/common/seed/Seed.java index 9d2a578..fe88f1a 100644 --- a/src/main/java/com/eactive/eai/common/seed/Seed.java +++ b/src/main/java/com/eactive/eai/common/seed/Seed.java @@ -10,7 +10,7 @@ public class Seed { public static void main(String[] args) throws Exception { - System.out.println( Seed.decrypt("47T1fWZ+PqF2pqseL++jLg==")); + // System.out.println( Seed.decrypt("47T1fWZ+PqF2pqseL++jLg==")); // //// String planText = "AIORTA00051001001R0000AIORULE01 0000001 0821400646003112000000004721212121061705G30011 0000000000006520507000000000000000000000000010200 1000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000001400000091 90 92 Q 21000000000000000000000004000000000000005000000000000000000000000000004000000000000000000100000000004000000646000000000000000FR00200000000400000000330906REJECT G301 00652 31742FILTER F200 0102721 R001 0000 0000 0000 0000 0000 30840MAIN G300 0061707 06 P3501 P4401 P4601 N4501 P3402 P4201 00000235143TEMP 31955TEMP 00000000231758TEMP 30623TEMP 00004830906BASE00 G301_BASE00 N 000000000000000000000025230906L11210000 G301_L11210000_37 N 000000000000000000000003730906L9Z000007 G301_L9Z000007_42 N 000000000000000000000004230906L9Z000210 G301_L9Z000210_47 N 000000000000000000000004730906CF0342210 G301_CF0342210_26 N 000000000000000000000002630906CF1200610 G301_CF1200610_00 N 000000000000000000000000030906L21210100 G301_L21210100_57 N 000000000000000000000005730906LA0600104 G301_LA0600104_55 N 000000000000000000000005530906LC0000008 G301_LC0000008_00 N 000000000000000000000000030906PE0000026 G301_PE0000026_90 N 000000000000000000000009030906NPF003_D G301_NPF003_D_46 S92 0004631742CD002 CD002_A 0000 N 000000000000000000000000031742FR002 FR002_A 0000 N 000000000000000000000000031742FR003 FR003_A 0000 N 000000000000000000000000031742FR004 FR004_A 0000 N 000000000000000000000000031742FR005 FR005_A 0000 N 000000000000000000000000031742FR006 FR006_A 0000 N 000000000000000000000000031742FR007 FR007_A 0000 N 000000000000000000000000031742IA004 IA004_R R001 N 000000000000000000000102731742LD002 LD002_A 0000 N 000000000000000000000000031742D10210000 D10210000_A 0000 N 000000000000000000000000031742D10210600 D10210600_A 0000 N 000000000000000000000000031742D20210000 D20210000_A 0000 N 000000000000000000000000031742D30210000 D30210000_A 0000 N 000000000000000000000000031742P27000100 P27000100_A 0000 N 000000000000000000000000031742XZ021 XZ021_A 0000 N 000000000000000000000000031742B12000200 B12000200_A 0000 N 000000000000000000000000031742B22000200 B22000200_A 0000 N 000000000000000000000000031742LE0021201 LE0021201_A 0000 N 000000000000000000000000031742L21201300 L21201300_A 0000 N 000000000000000000000000031742NLD010 NLD010_A 0000 N 000000000000000000000000031742G20220L00 G20220L00_A 0000 N 000000000000000000000000030840BASE00 G300_BASE00 N 000000000000000000000026130840NPF003 G300_NPF003_00 S91 0000030840NPF004 G300_NPF004_00 N 000000000000000000000000030840P13000500 G300_P13000500_32 N 000000000000000000000003230840PH0000043 G300_PH0000043_53 P4601 N 000000000000000000000005330840LC0027001 G300_LC0027001_23 P2401 N 000000000000000000000002330840NCBTM206A G300_NCBTM206A_47 P4401 N 000000000000000000000004730840L9Z000006 G300_L9Z000006_29 P3402 N 000000000000000000000002930840L11210000 G300_L11210000_30 N 000000000000000000000003030840U5Z000015 G300_U5Z000015_10 N 000000000000000000000001030840CF1200610 G300_CF1200610_00 N4501 N 000000000000000000000000030840C1Z200031 G300_C1Z200031_77 P3501 N 000000000000000000000007730840CF0642229 G300_CF0642229_09 N 000000000000000000000000930840L21210100 G300_L21210100_46 P4201 N 000000000000000000000004630840LC0000008 G300_LC0000008_00 N 000000000000000000000000030840KCBC14063 G300_KCBC14063_00 N 0000000000000000000000000";//2Byte이상의 문자 취 // String planText = "";//2Byte이상의 문자 취 diff --git a/src/main/java/com/eactive/eai/common/server/EAIServerManager.java b/src/main/java/com/eactive/eai/common/server/EAIServerManager.java index 477be4a..0b144d3 100644 --- a/src/main/java/com/eactive/eai/common/server/EAIServerManager.java +++ b/src/main/java/com/eactive/eai/common/server/EAIServerManager.java @@ -369,9 +369,9 @@ public class EAIServerManager implements Lifecycle { } } public static void main(String[] args) throws Exception{ - System.out.println(substrRule("card-internal-runtime-568fd58554-b2cnk","[5,2],[5,2],[-2]",0)); - System.out.println(substrRule("card-internal-runtime-568fd58554-b2cnk","[5,2],[5,2],[-2]",1)); - System.out.println(substrRule("card-internal-runtime-568fd58554-b2cnk","[0,2],[0,2],[-2]",2)); + // System.out.println(substrRule("card-internal-runtime-568fd58554-b2cnk","[5,2],[5,2],[-2]",0)); + // System.out.println(substrRule("card-internal-runtime-568fd58554-b2cnk","[5,2],[5,2],[-2]",1)); + // System.out.println(substrRule("card-internal-runtime-568fd58554-b2cnk","[0,2],[0,2],[-2]",2)); } } diff --git a/src/main/java/com/eactive/eai/common/util/StringUtil.java b/src/main/java/com/eactive/eai/common/util/StringUtil.java index 04d3718..3a856af 100644 --- a/src/main/java/com/eactive/eai/common/util/StringUtil.java +++ b/src/main/java/com/eactive/eai/common/util/StringUtil.java @@ -644,26 +644,26 @@ public final class StringUtil { boolean isDBUtf8 = true; String[] chunks = null; - System.out.println("\n test string:" + test); - System.out.println("utf-8 length = " + getBytesLength(test, true)); - System.out.println("ms949 length = " + getBytesLength(test, false)); - System.out.println("\n"); + // System.out.println("\n test string:" + test); + // System.out.println("utf-8 length = " + getBytesLength(test, true)); + // System.out.println("ms949 length = " + getBytesLength(test, false)); + // System.out.println("\n"); for(int len=6; len<9; len++) { - System.out.println(String.format(">> chunk length=%d, isDBUtf8=%b",len, isDBUtf8)); + // System.out.println(String.format(">> chunk length=%d, isDBUtf8=%b",len, isDBUtf8)); chunks = chunkStringArray(test,len,isDBUtf8); - System.out.println("chunk = "+ chunkString(test,len,isDBUtf8)); - System.out.println("chunks[0] = "+ chunks[0]); - System.out.println("chunks[1] = "+ chunks[1]); + // System.out.println("chunk = "+ chunkString(test,len,isDBUtf8)); + // System.out.println("chunks[0] = "+ chunks[0]); + // System.out.println("chunks[1] = "+ chunks[1]); } - System.out.println("\n"); + // System.out.println("\n"); isDBUtf8 = false; for(int len=6; len<9; len++) { - System.out.println(String.format(">> chunk length=%d, isDBUtf8=%b",len, isDBUtf8)); + // System.out.println(String.format(">> chunk length=%d, isDBUtf8=%b",len, isDBUtf8)); chunks = chunkStringArray(test,len,isDBUtf8); - System.out.println("chunk = "+ chunkString(test,len,isDBUtf8)); - System.out.println("chunks[0] = "+ chunks[0]); - System.out.println("chunks[1] = "+ chunks[1]); + // System.out.println("chunk = "+ chunkString(test,len,isDBUtf8)); + // System.out.println("chunks[0] = "+ chunks[0]); + // System.out.println("chunks[1] = "+ chunks[1]); } } } \ No newline at end of file diff --git a/src/main/java/com/eactive/eai/common/util/TypeConversion.java b/src/main/java/com/eactive/eai/common/util/TypeConversion.java index cb75489..ddf7f66 100644 --- a/src/main/java/com/eactive/eai/common/util/TypeConversion.java +++ b/src/main/java/com/eactive/eai/common/util/TypeConversion.java @@ -229,27 +229,27 @@ public class TypeConversion short sInit = 730; byte[] bytes = TypeConversion.short2byte(sInit); short sLL = TypeConversion.parseShort(bytes,0); - System.out.println("-----Message Old LL : " + sLL); - System.out.println("-----Message bytes toString : " + bytes); + // System.out.println("-----Message Old LL : " + sLL); + // System.out.println("-----Message bytes toString : " + bytes); short sNewLL = 152; bytes = TypeConversion.replaceShort(bytes, 0, sNewLL); sNewLL = TypeConversion.parseShort(bytes,0); - System.out.println("-----Message New LL : " + sNewLL); - System.out.println("-----Message bytes toString : " + bytes); + // System.out.println("-----Message New LL : " + sNewLL); + // System.out.println("-----Message bytes toString : " + bytes); String strMsg = "DA F23456789012345678901234567890123456 "; short minusOne = -1; byte[] bytesMsg = strMsg.getBytes(); bytesMsg = TypeConversion.replaceShort(bytesMsg, 47, minusOne); - System.out.println("-----minusOne : [" + new String(bytesMsg)+"]"); + // System.out.println("-----minusOne : [" + new String(bytesMsg)+"]"); short rtnMinusOne = TypeConversion.parseShort(bytesMsg, 47); - System.out.println("-----minusOne : [" + rtnMinusOne+"]"); + // System.out.println("-----minusOne : [" + rtnMinusOne+"]"); bytesMsg = TypeConversion.replaceShort(bytesMsg, 0, sNewLL); - System.out.println("-----minusOne : [" + new String(bytesMsg)+"]"); + // System.out.println("-----minusOne : [" + new String(bytesMsg)+"]"); } diff --git a/src/main/java/com/eactive/eai/common/util/UUIDGenerator.java b/src/main/java/com/eactive/eai/common/util/UUIDGenerator.java index 1b553aa..192148c 100644 --- a/src/main/java/com/eactive/eai/common/util/UUIDGenerator.java +++ b/src/main/java/com/eactive/eai/common/util/UUIDGenerator.java @@ -129,8 +129,8 @@ public final class UUIDGenerator { // System.out.println(getGUID("user000001")); // System.out.println(new Integer("01")); seq = 99999999; - System.out.println(getGUID("MCI")); - System.out.println(getGUID("MCI")); + // System.out.println(getGUID("MCI")); + // System.out.println(getGUID("MCI")); long start = System.currentTimeMillis(); for (int i = 0; i < 100000000; i++) { char[] seq = String.valueOf(i).toCharArray(); @@ -139,14 +139,14 @@ public final class UUIDGenerator { System.arraycopy(seq, 0, formatSeq, destPos, seq.length); } long end = System.currentTimeMillis() - start; - System.out.println("c1 time-" + end); + // System.out.println("c1 time-" + end); start = System.currentTimeMillis(); for (int i = 0; i < 100000000; i++) { String formatSeq = StringUtils.leftPad(String.valueOf(i), 10, '0'); } end = System.currentTimeMillis() - start; - System.out.println("c2 time-" + end); + // System.out.println("c2 time-" + end); // System.out.println(formatSeq); } diff --git a/src/main/java/com/kjbank/encrypt/exchange/crypto/AESCipher.java b/src/main/java/com/kjbank/encrypt/exchange/crypto/AESCipher.java index 7241637..4306508 100644 --- a/src/main/java/com/kjbank/encrypt/exchange/crypto/AESCipher.java +++ b/src/main/java/com/kjbank/encrypt/exchange/crypto/AESCipher.java @@ -110,7 +110,7 @@ public class AESCipher } catch (Exception e) { - System.out.println(e.toString()); + // System.out.println(e.toString()); } return resultData; diff --git a/src/main/java/com/kjbank/encrypt/exchange/crypto/ECDHESA256Cipher.java b/src/main/java/com/kjbank/encrypt/exchange/crypto/ECDHESA256Cipher.java index 4eceffd..2c99d15 100644 --- a/src/main/java/com/kjbank/encrypt/exchange/crypto/ECDHESA256Cipher.java +++ b/src/main/java/com/kjbank/encrypt/exchange/crypto/ECDHESA256Cipher.java @@ -60,7 +60,7 @@ public class ECDHESA256Cipher { } this.pubKey = cert.getPublicKey(); - System.out.println(pubKey.getAlgorithm()); // "RSA" 또는 "EC" + // System.out.println(pubKey.getAlgorithm()); // "RSA" 또는 "EC" if ("RSA".equals(pubKey.getAlgorithm())) { RSAPublicKey rsaPub = (RSAPublicKey) cert.getPublicKey(); @@ -102,7 +102,7 @@ public class ECDHESA256Cipher { for (Certificate c : certs) { if (c instanceof X509Certificate) { cert = (X509Certificate) c; - System.out.println("Subject: " + cert.getSubjectDN()); + // System.out.println("Subject: " + cert.getSubjectDN()); } } @@ -112,7 +112,7 @@ public class ECDHESA256Cipher { // 공개키 저장 및 알고리즘 확인 this.pubKey = cert.getPublicKey(); - System.out.println(pubKey.getAlgorithm()); // "RSA" 또는 "EC" + // System.out.println(pubKey.getAlgorithm()); // "RSA" 또는 "EC" KeyStore ks = KeyStore.getInstance("PKCS12"); @@ -120,7 +120,7 @@ public class ECDHESA256Cipher { //PrivateKey myPrivateKey = (PrivateKey) ks.getKey(keyAlias, keyPass.toCharArray()); //PrivateKey myPrivateKey = (PrivateKey) ks.getKey("mykey", "key1234".toCharArray()); PrivateKey myPrivateKey = NPKILoader.loadPrivateKey(priPath, password, pubKey.getAlgorithm()); - System.out.println("PrivateKey Alg: " + myPrivateKey.getAlgorithm()); + // System.out.println("PrivateKey Alg: " + myPrivateKey.getAlgorithm()); RSAPublicKey publicKey = (RSAPublicKey) cert.getPublicKey(); this.receiverPublicRSAKey = new RSAKey.Builder(publicKey)