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.
- Open Terminal and go to the location of the folder you want to zip (for example,
cd ~/Desktop) - Type the following
zip -er files-to-send.zip Documents-folder
- 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.
- Turn on Add a password and a 12-character password is created for you (you can also type your own)
- Copy the password with one click, or generate a new one
- Creates a ZIP that opens with the tools built into Windows
- Turn on Leave out Mac hidden files to keep "__MACOSX" and ".DS_Store" out of the ZIP
- File names with accents or non-Latin characters show correctly on Windows
How to use it
- Hold down the right ⌘ key to bring up the cards
- Drop your files or folders on the Make ZIP card
- Turn on Add a password and copy the password
- 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
- Finder's Compress can't add a password
- With built-in tools, you can make one with
zip -erin Terminal - To make a password-protected ZIP that opens on Windows with just a drop, use Stello's Make ZIP card
- Send the password separately from the ZIP