King Goldman, King Goldman wrote: > I read the books and couldnt find answer for my problem and I need your > advise in identifying the right approach to encrypt (AES256) the contents > of my zip file which are usually a pdf and a csv generated in memory. To > achieve this i am zipping the files generated in the following procedure > but i have no clue on how to encrypt it. I need something in the form of > an output stream which i can write to the response.
Do you want to encrypt the ZIP contents using encryption methods provided by the ZIP format? Or do you want the content files to be encrypted individually by methods provided by their own format or externally? If the former was true, you would be on the wrong list --- you would best look for some list on archives, zip files, etc. (Just as a hint: The JRE Zip streams don't seem to support encryption or decryption. Alternative libs may do, though, e.g. https://truezip.dev.java.net/) In the latter case doing PDF encryption is easy, look for setEncyption() methods, e.g. on PdfWriter. In that case, though, I'm surprised you missed chapter 12.3 "Encrypting a PDF document" in the second edition book... Regards, Michael. -- View this message in context: http://itext-general.2136553.n4.nabble.com/encrypting-the-outputstream-tp3042211p3042672.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
