Browse > Home / Apple, HowTo / How to create password protected zip file (compressed) in Mac OSX

| Subcribe via RSS

How to create password protected zip file (compressed) in Mac OSX

January 1st, 2012 Posted in Apple, HowTo
↓Continue reading after the jump↓

There is no need to buy third-party tool to compress or to Zip file. Mac OS interface comes with built in functionality of compressing file. There are two ways to to compress Or zip files.

if you want to compress the file:

Method 1: Compress the file without password protection

1. In finder, locate the file.
2. Do a right click on file name
3. There is an option “compress” in the contextual action menu.
4. Click on “compress”, you will find compressed (.Zip) file in same directory

Method 2a: Compress (.Zip) the file WITH password protection

1. In “spotlight” (click top right “magnifying glass”), Search for “terminal” and open it.
2. Go to the directory where the files are stored that you wanted to compress
3. type following command
4. “zip -e myzipfile.zip file1.txt file2.txt” (notice the ‘-e’, it means: encrypt)
5. Once you enter the command, system will prompt you to supply password twice. Just enter the password you wish to set, and it’s done!
6. You should see myzipfile.zip appear in the directory.

if you want to compress the directory:

Method 2b: Compress (.Zip) the directory WITH password protection

1. In “spotlight” (click top right “magnifying glass”), Search for “terminal” and open it.
2. Go to the directory where the Directory is stored (directory consist more then few files) that you wanted to compress
3. type following command
4. “zip -er myzipfile.zip DirectoryName” (notice the ‘-e’, it means: encrypt and ‘-r’ means: recurse into directories)
5. Once you enter the command, system will prompt you to supply password twice. Just enter the password you wish to set, and it’s done!
6. You should see myzipfile.zip appear in the directory.

One Response to “How to create password protected zip file (compressed) in Mac OSX”

  1. petuerey online Says:

    Chaqueta de los modelos cortos abajo, diseños de manga corta son muy elegante, con un diseño de cinturón, más casual aseado. Pantalones Estrecho-piernas con pantalones negros, los colores más prominentes en el nivel. Luego, con falda de lana, hará que la gente se siente muy lady.


Leave a Reply

Most Recent Posts: