Can the encryption option on Info-ZIP be used from the command line? The zip man page says:
-e --encrypt Encrypt the contents of the zip archive using a password which is entered on the terminal in response to a prompt (this will not be echoed; if standard error is not a tty, zip will exit with an error). The password prompt is repeated to save the user from typing errors.
Is there a way to create zipped files from an unattended script?
openssl bf -salt -k passphrase -in file.zip -out file.zip.bfe
to encrypt the zip file (this can also be done on the fly by piping. Decryption is as easy asopenssl bf -d -salt -k passphrase -in file.zip.bfe -out file.zip
. Zip doesn't support unzipping from a pipe, so you can't decrypt a zip on the fly with openssl. You can use gzip and tar however, it depends on your needs.