1. Stello
  2. Guides

How to password-protect a ZIP file on a Mac (that opens on Windows)

When you send files to a client, they may ask for a password-protected ZIP. But Finder's Compress command on a Mac has no option for a password. Here's how to make a password-protected ZIP on a Mac.

Finder's Compress can't add a password

Control-click a file in Finder and choose Compress, and you get a ZIP right away, but you never see a screen for setting a password. To protect it with a password, you need another method.

ZIPs made in Finder also include hidden Mac-only files (a "__MACOSX" folder and ".DS_Store" files). On Windows, these show up as strange folders the other person doesn't recognize.

Make one with built-in Mac tools

Option 1: The zip command in Terminal

The zip command that comes with macOS can create a password-protected ZIP.

  1. Open Terminal and go to the location of the folder you want to zip (for example, cd ~/Desktop)
  2. Type the following
zip -er files-to-send.zip Documents-folder
  1. When asked for a password, enter it twice (nothing appears on screen as you type)

To leave out the hidden files, add -x "*.DS_Store" at the end. If you're not used to commands, this can feel a bit daunting.

Option 2: An encrypted disk image in Disk Utility

You can also create a disk image (.dmg) in Disk Utility and choose encryption. But a .dmg is basically for Macs, so it's not a good choice for sending to someone on Windows.

Make a password-protected ZIP with a drop (Stello)

With Stello's Make ZIP card, you just drop your files and flip a switch.

How to use it

  1. Hold down the right ⌘ key to bring up the cards
  2. Drop your files or folders on the Make ZIP card
  3. Turn on Add a password and copy the password
  4. Click Make ZIP

Sending the password safely

If you put the password in the same email as the ZIP, or in a follow-up email, anyone who sees your email gets both. It's better to share the password another way, such as by chat or phone.

Also, ZIPs that open as is on Windows don't use very strong encryption. For especially important files, consider a cloud storage share link that lets you limit who can access it.

Summary