
Please share this with your friends on social media. Hope you will find this tutorial helpful.

To unzip the encrypted zip file all you have to do is double-click on the zip file and it will prompt you to enter the password that was used for encryption.Įnter a valid password and it will successfully decrypt and unzip the zip file for you.ĭANGER If you forget the password then you will be unable to extract the files. Re-type the password and it will create a zip file for you. Next, it will prompt you to verify the password that you have entered. It will prompt you to enter a password to encrypt the file. I will name my zip file as TOPSECRET.zip. I will go ahead and create an encrypted zip file using the TopSecret folder that is on my Desktop. The -er option will create an encrypted zip file using the source folder and its content. SOURCE_FILENAME is the name of your folder that you want to zip. Where, zip is the command to create zip files.ĭESTINATION_FILENAME is the name that you want to give to your zip file.

$ zip -er DESTINATION_FILENAME.zip SOURCE_FILENAME To encrypt a folder we have to type the following command in Terminal. I have my confidential folder (name: TopSecret) on my Desktop so I will go to Desktop by typing the following command in the Terminal Now go inside the folder (directory) in which you have the confidential folder that you want to encrypt. Or, you can go to Finder then click on Applications then go inside the Utilities folder and select Terminal. Press Cmd + Space key and it will open Spotlight.

This way only authorized persons who have the password can unzip the encrypted zip file.Īlright, let's go ahead and create an encrypted zip file. To protect the zip file from prying eyes and unauthorized access you can encrypt the zip file using a strong password. Moreover, anyone can unzip that file and access your confidential content. Let's say you have a folder containing some confidential files and you want to create a zip file that is password protected and encrypted.Ĭreating a plain zip file is not wise as it provides no extra security. In this tutorial we will learn to create password protected and encrypted zip file using the Terminal.
