in src/java/org/apache/fulcrum/jce/crypto/cli/CLI2.java [364:378]
public static String processString(String cipherMode, char[] password, String value) throws Exception {
if (value != null && !value.equals("")) {
CryptoUtilJ8 cryptoUtilJ8 = createCryptoUtil(cipherMode);
String result = null;
if (cipherMode.startsWith("dec")) {
result = cryptoUtilJ8.decryptString(value, password);
} else if (cipherMode.startsWith("enc")) {
result = cryptoUtilJ8.encryptString(value, password);
}
return result;
} else {
return null;
}
}