Quantcast
Channel: Mac & MacOS Help – Ask Dave Taylor
Viewing all articles
Browse latest Browse all 264

Create Password-Protected ZIP Archive on a Mac?

$
0
0
create encrypted secure zip archive dropbox mac macos x

Your client is right to be skeptical of the encryption used on Dropbox. Security experts aren’t impressed, and I know that if you upload a file with a “hash” analysis that matches a file that was removed for copyright violations it can be rejected by the Dropbox server. All of those can add up to a service that offers good security and much convenience, but possibly not sufficient security for truly private or secret content or enterprise work.

Which leads to the question: how do you create an encrypted, secure ZIP archive file on a Mac system? Turns out that it’s straightforward, but you have to be willing to get your hands just a bit dirty with a command line sequence. Don’t panic, I’ll show you exactly what to type in and it’s definitely something you can handle.

Bonus: If you’re worried about DMCA filters on Dropbox, encrypting the file with your own password should sidestep the issue, though I still discourage you from sharing files that you don’t have the legal right to share, of course.

Now, to start, here’s a video file ready to share with a client:

secret video file, ready to encrypt and share dropbox

To create an encrypted archive file version of this video file, in the cross-platform friendly ZIP Archive format, open up the Terminal app (you can find it in Applications > Utilities) and type in exactly:

zip -e secret-video.zip secret-video.mp4

In this example, the input file to be included in the archive is “secret-video.mp4” (as shown earlier) and the resultant output encrypted ZIP archive file is “secret-video.zip” in the same folder. Note the “-e” flag that tells the zip program to prompt for an encryption password.

Type it in, with your own input and output file names specified (tip: you can specify as many files at the end of the command as you want, so if you have a folder full of .mp3 audio files, for example, you could use “*.mp3”) and zip will prompt you for the desired password. Enter it twice, and it’ll build the file, encrypting it as it goes:

$ zip -e secret-video.zip secret-video.mp4
Enter password:
Verify password:
adding: secret-video.mp4 (deflated 0%)
$

Now you can move back to the Finder as your command line job is done. Phew!

The resultant output ZIP file shows up as you’d hope:

output zip archive file mac macos

Interestingly, the MacOS X system doesn’t show a special icon to denote it’s encrypted. Let’s just double click to open it, just to make sure…

enter password to open decrypt zip archive mac macos x

That works as you’d desire. Enter the wrong password and you can’t proceed. Enter the correct one, however, and it unpacks and the original video shows back up again!

Switch the same archive file over to a Windows 10 system and it also fails to get a special icon to denote it’s encrypted:

zip archive, windows icon

A double-click to open it and you’ll see what’s inside:

contents of an encrypted secure zip archive, windows win10

Double click that to actually try and view the movie and you’ll again be prompted for the proper password:

enter password to view contents of encrypted secure zip archive, windows win10 10

That’s it. A simple command line invocation and you have a secure file you can store on Dropbox and that only your client – or whomever else you share your password – can unpack and view.

The post Create Password-Protected ZIP Archive on a Mac? appeared first on Ask Dave Taylor.


Viewing all articles
Browse latest Browse all 264

Trending Articles