I am creating zip files in GAE with Java, using ZipOutputStream to upload them to Google Cloud Storage.
However I need to encrypt the files but I don't know how.
Does anyone know how to encrypt a ZipOutputStream in Google Appengine?
I am creating zip files in GAE with Java, using ZipOutputStream to upload them to Google Cloud Storage.
However I need to encrypt the files but I don't know how.
Does anyone know how to encrypt a ZipOutputStream in Google Appengine?
Below is a sample Java application that demonstrates writing a block of text to a DES-encrypted file inside a zip archive. The output of the app:
Note that you could also do this in the opposite order: add the file to the zip and then encrypt the zip file. It would just require switching the order of the cipher and zip streams. Here's the source code: