Encryption

  1. // type and props, please refer to the built-in encryption algorithm: https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/encrypt/
  2. Map<String, AlgorithmConfiguration> algorithmConfigs = new HashMap<>();
  3. algorithmConfigs.put("encryptorName", new AlgorithmConfiguration("xxx", new Properties()));

Shadow DB

  1. // type and props, please refer to the built-in shadow DB algorithm: https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/shadow/
  2. algorithmConfigs.put("shadowAlgorithmName", new AlgorithmConfiguration("xxx", new Properties()));

Data Masking

  1. // type and props, please refer to the built-in mask algorithm: https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/mask/
  2. Map<String, AlgorithmConfiguration> algorithmConfigs = new HashMap<>();
  3. algorithmConfigs.put("maskAlgorithmName", new AlgorithmConfiguration("xxx", new Properties()));