Use PBEWithMD5AndTripleDES since it is a bit more secure.
Do not rely on sun internal classes.