There are several methods for creating encrypted archives, including Terminal-based options and Finder services.
To make sending multiple files by e-mail or other means easier, Apple includes a quick Finder contextual menu option to zip a selection of files and folders into an archive, which not only will ensure that the files stay together, but can also greatly reduce their size for the file transfer. While convenient, Apple does not provide a means to encrypt or secure the contents of the ZIP archive with a password; however, there is a way to do this if needed.
To place a file or folder into a ZIP file that is encrypted, you will need to use the Terminal and perform the following actions:
zip -e ~/Desktop/archive.zip
zip -e ~/Desktop/archive.zip /Path/to/folder
This method may be a bit cumbersome , and it's not a very good implementation of encryption for files in OS X, either, so if you plan on encrypting collections of files regularly, your best bet is to use alternative means.
Apple's preferred encryption container for files is a disk image, which is a wrapper format that mimics a physical disk (hard drive or DVD). These images can be created using Disk Utility by choosing an option for disk images (i.e., from a folder or a new blank image) from the File > New menu. While this option is robust, having to use Disk Utility makes it a touch inconvenient to use; however, you can set up a Finder service using Automator that will allow quick access to making an encrypted disk image from any selection of files and folders.
To do this, open the Automator program and perform the following steps:
When finished, save the workflow and give it a name such as "Encrypted Disk Image from Selection," after which it will become available in the Services menu in the Finder and other applications that can pass files and folders to system services. To use the new service you have just created, select some files that you would like to encrypt, and right-click them to show the Finder's contextual menu. In the Services submenu, choose Encrypted Disk Image from Selection, and the service will prompt you for a password. After supplying the password, the system will reveal the new disk image in the Finder, which should be compressed and encrypted using AES 128-bit encryption.
Questions? Comments? Have a fix? Post them below or
e-mail us!
Be sure to check us out on Twitter and the CNET Mac forums.