Create a Password Protected Zip file on Mac OS X

Will add more information later, but the command is as follows for a directory (the -r means recursive, so it zips all files in the directory preserving the directory structure too):

zip -re filename.zip dir_name

To zip a single file and password protect it just omit the r in -re

Both commands will prompt for a password and to confirm the password.

Comments are closed.