Put a Password on a Zip Archive in Mac OS

Do you have a lot of secret stuff you need to compress? Perhaps you don’t want anyone to see your massive collection of kitten pictures? Here’s how to create a compressed archive with a password on it in Mac OS.

  1. Open a Terminal window
  2. Change to the directory where your files are that you want zipped (cd /your/secret/files)
  3. Enter this command zip -e secrets.zip secrets/* , where secrets.zip is the name of your to-be-created archive and secrets is the directory where they reside
  4. Enter your desired password in response to the prompts
  5. Done!