加密算法

  1. // type 和 props,请参考加密内置算法:https://shardingsphere.apache.org/document/current/cn/user-manual/common-config/builtin-algorithm/encrypt/
  2. Map<String, AlgorithmConfiguration> algorithmConfigs = new HashMap<>();
  3. algorithmConfigs.put("encryptorName", new AlgorithmConfiguration("xxx", new Properties()));

影子算法

  1. // type 和 props,请参考影子库内置算法:https://shardingsphere.apache.org/document/current/cn/user-manual/common-config/builtin-algorithm/shadow/
  2. algorithmConfigs.put("shadowAlgorithmName", new AlgorithmConfiguration("xxx", new Properties()));

脱敏算法

  1. // type 和 props,请参考脱敏内置算法:https://shardingsphere.apache.org/document/current/cn/user-manual/common-config/builtin-algorithm/mask/
  2. Map<String, AlgorithmConfiguration> algorithmConfigs = new HashMap<>();
  3. algorithmConfigs.put("maskAlgorithmName", new AlgorithmConfiguration("xxx", new Properties()));