Zip and password-protect any file via OS X’s Terminal

Pretty simple — just do the following:

  1. Open Terminal (Applications > Utilities > Terminal)
  2. CD to the directory with the file(s) to zip and password-protect
  3. Type the following and wait: “zip -e file1 file2”

Note: I zipped my iPhoto Library, so I did “zip -re Pictures/”. The -r means recursive.

Leave a Reply

Your email address will not be published. Required fields are marked *