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.