This commit is contained in:
jaewohong
2026-01-08 09:45:47 +09:00
parent c3234b6234
commit bf1b03061b
2 changed files with 9 additions and 3 deletions
@@ -2,6 +2,7 @@ package com.eactive.eai.transformer.function.crypto;
import java.util.Stack;
import com.eactive.eai.common.context.ElinkTransactionContext;
import org.nfunk.jep.ParseException;
import org.nfunk.jep.function.PostfixMathCommand;
@@ -22,8 +23,12 @@ public class SeedKJDecrypt extends PostfixMathCommand {
public void run(Stack inStack) throws ParseException {
checkStack(inStack);
// USER FUNCTION에서 Parameter 에서 가져옴
//샘플
String seedSalt = ElinkTransactionContext.getSeedSalt();
System.out.println("seedSalt = " + seedSalt);
// USER FUNCTION에서 Parameter 에서 가져옴
Object param2 = inStack.pop();
String param2Str = String.valueOf(param2); // null 안전 처리
String decryptKey = StringUtils.leftPad(param2Str, 16, '0');
@@ -61,3 +66,4 @@ public class SeedKJDecrypt extends PostfixMathCommand {
}
}
}
@@ -61,4 +61,4 @@ public class SeedKJEncrypt extends PostfixMathCommand {
throw new ParseException(e.getMessage(), e);
}
}
}
}