Ever 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:-
- 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.
How to resize image in Mac OS X
SVN: How to commit only modified files via command line
How to move cursor to end of file in vi editor
How to delete call history in Skype
How to loop thru directory files in bash shell
Secure file transfer thru scp in Mac and Linux
How to play .mkv file in Mac OS X
How to turn on Firewall in Mac?
Share this with your friends:-
Hi Jonny, if you want to unzip archives with password, u can follow the link below:-
Mac OS X 10.7 (Lion) does support unzipping archives with passwords
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:
It will prompt you for the passphrase at that time.
great … it works ..
Good answer congratulations
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).
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
It does not work!!!
Encryption is not supported… see the errore message:
zip error: Invalid command arguments (encryption not supported)