Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is it possible, on a Mac, to create a password-protected zip file, that can be decompressed on a PC and on Mac without problems? Is there a free way to do it if possible?

share|improve this question
add comment

1 Answer

The terminal command

zip -ejr [(path to) archive_name.zip] [path to folder to be zipped]

should do the trick. You will be prompted to enter and verify a password.

The encrypted file can be unzipped from the Finder, you'll be prompted for the password. The file should also be useable on Windows, 'nix OS's, and every other file system that supports zip:

zip is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows 9x/NT/XP, Minix, Atari, Macintosh, Amiga, and Acorn RISC OS. It is analogous to a combination of the Unix commands tar(1) and compress(1) and is compatible with PKZIP (Phil Katz's ZIP for MSDOS systems).

source: zip man page

If you want a GUI solution, it shouldn't be too difficult to create an Automator workflow to automate this process.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.