If you want to set a password for a zip file, then you have come to the right place. In this article, you will learn how to password protect a compressed file on Mac.
Apple uses SSD storage instead of HDD, and we all know that SSD is much costlier than the standard hard drives. SSD is much better when it comes to the performance department. Apple has started using SSD instead of HDD in the past years. Apple has decreased the amount of storage space, especially in the Mac devices. For instance, instead of 500 GB HDD, you are getting 256 GB storage space in the new Macbook and Mac PCs.
Due to less storage space in the newer Mac versions users have to compress their files to save up the storage space. The Zip file is one of the most popular compressed file types. The significant advantage of the Zip file is that you can protect it by setting up a password. So what’s the wait? Let’s get started.
How to Set Up a Password in Zip files on Your Mac?
You don’t need any additional software or third-party application to protect a Zip file in Mac using a password. In order to set a password in a Zip file, you have to access Terminal on your Mac. There you will need to enter some commands to set up a password. Here’s how to do that:
- Move the file or folder that you want to protect with a password to the “Desktop” directory.
- Open the Terminal application on your Mac by pressing “Cmd + Space” keys together and then searching for it.
- Type “$ cd Desktop/” command in the Terminal windows.
- Hit the Enter key on your keyboard.
- Replace the brackets with your file details and Enter this command: “zip -e [zipped filename] [original filename].” Don’t enter quotes and brackets while typing the above command. For example, if your zip file name is PowerRangers.zip and the original filename is PowerRangers.mp4, then enter this: “zip -e [PowerRangers.zip] [PowerRangers.mp4].”
- If your file name has spaces in it, then make sure to remove all spaces by renaming it before you enter the commands in the Terminal.
- Also, ensure that the zip file and original file names should be match. Otherwise, the operation will be failed.
- Now hit the “Enter” on your keyboard.
- After that, you will be asked to enter a password. You should enter the password right there.
- You may see that while entering the password, the cursor is not moving. Don’t panic because it is entirely normal in the Terminal.
- Now hit the Enter key and enter the password once more to confirm your password. Hit the enter key again, and your file will be protected with a password.
Aida Martin is a creative person who has been writing blogs and articles about cybersecurity. She writes about the latest updates regarding mcafee.com/activate and how it can improve the work experience of users. Her articles have been published in many popular e-magazines, blogs, and websites.