17. XMLEncoder forums.oracle.com
Hi I am learning to use XMLEncoder/XMLDecoder, they work fine, except I wonder how to make the output encrypted, my code looks like this : XML_Encoder=new XMLEncoder(new BufferedOutputStream(new FileOutputStream(File_Path))); XML_Encoder.writeObject(My_Bean_Object); Can someone show me how to encrypt the xml and write it out ? Then decrypt it before read it in ? Thanks Frank