Create encrypted ZIP file on OS X or Linux

To create an encrypted ZIP file in OS X you can use the zip CLI tool

zip -e myzipfile.zip file1.txt file2.txt

If you want a more secure way of encrypting a file, please read my post which shows how to use OpenSSL – http://blogs.barlow.uk.net/techblog/encrypt-file-with-openssl/