/**
* Duplication from CoreProperties.ENCRYPTION_SECRET_KEY_PATH
*/
- private static final String ENCRYPTION_SECRET_KEY_PATH = "sonar.secretKeyPath";
+ static final String ENCRYPTION_SECRET_KEY_PATH = "sonar.secretKeyPath";
private String pathToSecretKey;
}
static Properties decrypt(Properties properties) {
- Encryption encryption = new Encryption(null);
+ Encryption encryption = new Encryption(properties.getProperty(AesCipher.ENCRYPTION_SECRET_KEY_PATH));
Properties result = new Properties();
for (Map.Entry<Object, Object> entry : properties.entrySet()) {