DAMO 암호화 복호화 실패 시 원본 리턴되도록 수정
This commit is contained in:
@@ -163,7 +163,14 @@ public class EncryptionManager implements Lifecycle {
|
|||||||
if (this.isEncrypted(dbData)) {
|
if (this.isEncrypted(dbData)) {
|
||||||
if ("DAMO".equals(dbEncryptSolutionName)) {
|
if ("DAMO".equals(dbEncryptSolutionName)) {
|
||||||
com.eactive.ext.djb.DamoManager damoManager = new com.eactive.ext.djb.DamoManager();
|
com.eactive.ext.djb.DamoManager damoManager = new com.eactive.ext.djb.DamoManager();
|
||||||
return damoManager.decrypt(dbData);
|
try {
|
||||||
|
return damoManager.decrypt(dbData);
|
||||||
|
} catch (Exception e) {
|
||||||
|
// 복호화 실패시 원본 반환
|
||||||
|
String logData = dbData.length() <= 3 ? dbData : dbData.substring(0, 3) + "...";
|
||||||
|
logger.warn("DB 복호화 실패: 복호화하지 않고 원본 반환. dbData={} (Length : {})", logData, dbData.length());
|
||||||
|
return dbData;
|
||||||
|
}
|
||||||
} else if ("SAFEDB".equals(dbEncryptSolutionName)) {
|
} else if ("SAFEDB".equals(dbEncryptSolutionName)) {
|
||||||
KjbSafedbWrapper safeDBWrapper = KjbSafedbWrapper.getInstance();
|
KjbSafedbWrapper safeDBWrapper = KjbSafedbWrapper.getInstance();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user