mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
migrate parser from druid to polardbx-parser
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.alibaba.otter.canal.common.utils;
|
||||
|
||||
import com.alibaba.druid.filter.config.ConfigTools;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
@@ -50,4 +52,8 @@ public class CommonUtils {
|
||||
|
||||
return dirFile.delete();
|
||||
}
|
||||
|
||||
public static String decryptDruidPassword(String publicKeyText, String cipherText) throws Exception {
|
||||
return ConfigTools.decrypt(publicKeyText, cipherText);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user