String rawZookeeperPassword = getStringData(getCurator(), ZkPath.AUTHENTICATION_CRYPT_PASSWORD.getPath());
if (rawZookeeperPassword != null) {
rawZookeeperPassword = PasswordEncoder.decode(rawZookeeperPassword);
}
password = password != null ? password : rawZookeeperPassword;
StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
encryptor.setAlgorithm(algorithm);
encryptor.setPassword(password);
System.out.println(String.format(FORMAT, message, algorithm, password, encryptor.encrypt(message)));
}
return null;
}