Sysadmin > MacOSX > OSXEncryptedZip

How to Set a Zip Password in Mac OS X

You can create password protected archives of files and folders:

Launch the Terminal from the Applications > Utilities folder Type the following command:

zip -e file2protect.txt

Your file is now encrypted with the password you typed.

If you plan on compressing multiple files within a folder:

zip -er /path/directory/