Search This Blog

Tuesday 3 January 2012

Encrypted zip files in Mac OS

Enter the command below in the format specified.

zip -e myzipfile.zip file1.txt file2.txt

You will be prompted to type in a password, this is the password used to protect the zip file.

To do this action on a folder

zip -e myzipfile.zip /users//desktop/myfolder/* 


You can also specify where to place the zipfile using the same syntax as you would to specify where the files are. 


zip -e /users//Desktop/myzipfile.zip /users//Documents/file1.txt /users//Desktop/file2.txt