Object[] args = {secret};
String[] sig = {secret.getClass().getName()};
byte[] encode = (byte[]) super.invoke(name, "encode", args, sig);
assertTrue("secret != encode", Arrays.equals(secret, encode) == false);
PBEParameterSpec cipherSpec = new PBEParameterSpec("abcdefgh".getBytes(), 13);
PBEKeySpec keySpec = new PBEKeySpec("password1".toCharArray());
SecretKeyFactory factory = SecretKeyFactory.getInstance("PBEwithMD5andDES");
SecretKey cipherKey = factory.generateSecret(keySpec);
Cipher cipher = Cipher.getInstance("PBEwithMD5andDES");
cipher.init(Cipher.DECRYPT_MODE, cipherKey, cipherSpec);