Hey I am using your patch so I can use SHA512 JDK 8 in Jasypt. I found an issue though.
Using an old PBE like this...
public static final StandardPBEStringEncryptor ENCRYPTOR = new StandardPBEStringEncryptor();
static {
ENCRYPTOR.setAlgorithm("PBEWithMD5AndDES");
ENCRYPTOR.setPassword(PASSWORD);
}
The current string is "kVTHVfAVDJ0vjqQimc3UsQ==" and it decrypts fine with Jasypt 1.9.2. But the same with your patch fails here...
if (ivGenerator.includePlainIVInEncryptionResults()) {
// Extracting the IV
iv = Arrays.copyOfRange(encryptedMessageKernel, 0, IVSizeBytes / 8);
finalEncryptedMessage = Arrays.copyOfRange(encryptedMessageKernel, iv.length, encryptedMessageKernel.length);
if (LOGGER.isDebugEnabled())
LOGGER.debug("Extracted IV: {}", Arrays.toString(iv));
}
It I reencrypt my string using your library the string is a lot longer than it was before. Any help on why the old conversion is now broken?