use of org.jasypt.encryption.pbe.config.SimpleStringPBEConfig in project cloudstack by apache.
the class EncryptionSecretKeyChanger method initEncryptor.
private void initEncryptor(StandardPBEStringEncryptor encryptor, String secretKey) {
encryptor.setAlgorithm("PBEWithMD5AndDES");
SimpleStringPBEConfig stringConfig = new SimpleStringPBEConfig();
stringConfig.setPassword(secretKey);
encryptor.setConfig(stringConfig);
}
Aggregations