How To: Encrypt Zip File Mac X

How To: Encrypt Zip File Mac X

ZIP files are the most popular form of file compression on the Internet. You typically create a ZIP file to compact a file(s) so that it is smaller to send to someone, typically in emails. However, any zip file can be intercepted, unzipped, and the contents be made available to the public. Luckily, Mac X has a hidden feature to secure ZIP files.

 

Mac X allows you to encrypt and password protect any zip file using Mac X Terminal. To encrypt a ZIP file inside a folder, follow these steps.

 

    1. Open Terminal (Applications -> Utilities -> Terminal)
    2. We will use the zip command in Terminal. Type zip –e (encrypt option) NAME.zip (zip file name to create) folder path to zip.

Example Sytnax:

zip -er NEW.zip /Users/kos/Desktop/test

 

Mac Password Protect Zip

Note: If you were only zipping a single file, use –e syntax per below





Mac Password Protect Single File

 

 

  1. Hit enter. Now, you will be prompted to enter and confirm a password for the ZIP file. Whoever you intend to open this ZIP, they will need to know this password you set.
  2. The ZIP compression will begin. ZIP compression time depends on the size of your files.
  3. Once completed, the Terminal command prompt will be back to $
  4. By default, your newly encrypted zip file will be located: HardDrive/Users/user/yourzipfile.zip

 

 

Here is a reference to the Terminal ZIP command arguements 

 

Mac Zip File Commands Terminal

 

Open the Encrypted Zip File

 

  1. You should be able to double-click the zip file and have it prompt you to enter the password.

 

Mac Unzip Password Protected FIles

All else, you can use Mac X Terminal to expand the zip file. Type:

unzip filename.zip
* Please use the comment form below. Comments are moderated.*



Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Tuesday, 19 November 2024