I am migrating from JDK 1.5 to JDK 1.6. I've encountered difficult problem. Here is piece of code:
SecretKeyFactory factory = SecretKeyFactory.getInstance("PBEWithMD5AndTripleDES");
SecretKey key = factory.generateSecret(keySpec);
Cipher ecipher = Cipher.getInstance(key.getAlgorithm());
The created Cither instances produce different results for JRE 1.5 and JRE 1.6 (jce is installed in both cases).
Why JDKs produce different results? What is the difference in java security implementation between versions 1.5 and 1.6?