How to create password protected zip file in Mac OS X


mac create password protected zipEver wonder how to create password protected zip file in Mac. I know there are many paid tools to create password protected zip in Mac. But i wan a free solution that can create password protected zip file in Mac!

To create password protected zip file in Mac, follow the steps below:-

Advertisements

  • Go to Finder -> Application -> Terminal
  • now change directory to the plance you wan to zip and enter the command below:-
    $ zip -e myzipfile.zip file1.txt file2.txt
  • Once you enter the command, system will prompt you for password twice. Just enter the password you wish to set, and it’s done!
  • You should see myzipfile.zip appear in the directory.

    ** Default Archive Utility cant open password protected zip file. Refer to my How to open password protected zip file in Mac post.

  • Done. You just created a password protected zip file in Mac OS X

* If you cant create the password protected zip file, most of the time your zip utility doesn’t support encryption. Try to upgrade your zip utility and everything will work fine.




Share this with your friends:-

8 Responses to “How to create password protected zip file in Mac OS X”

  1. chua says:

    Hi Jonny, if you want to unzip archives with password, u can follow the link below:-
    http://www.techiecorner.com/833/how-to-open-password-protected-zip-in-mac-os-x/

  2. Jonny says:

    Mac OS X 10.7 (Lion) does support unzipping archives with passwords

  3. TC says:

    Yes, it does work.

    The error people are reporting when it comes to unzipping is exactly as niccolo says. The default Mac Archive Utility cannot handle the decryption process.

    One option is to use the free version of StuffIt Expander as niccolo suggests.

    The other option is to decrypt it from the command line using this command:

    unzip myzipfile.zip

    It will prompt you for the passphrase at that time.

  4. arun says:

    great … it works ..

  5. Asgard says:

    Good answer congratulations

  6. Gene T says:

    As they say above, the zip command works (prompts for the password, saves the zip). But when you try to unzip it from the file manager outside the terminal, it errors out: “Unable to unarchive (file name)” (Error 1 – Operation not permitted).

  7. niccolo says:

    thanks, it works well.
    only problem is that the default unarchiver for the osx system does not give a prompt for the password, it just says that it cannot open the archive because it has no permission.
    stuffit expander, on the other hand, prompts for the password and unzips just fine.

    thanks a lot

  8. Mac user says:

    It does not work!!!

    Encryption is not supported… see the errore message:

    zip error: Invalid command arguments (encryption not supported)

Leave a Reply