Would you like to prevent unau­tho­rized people from accessing sensitive data that you store on data servers and shared computers, or send via email? Then it’s best to use password-protected archive files, like those in ZIP format.

You can password protect ZIP files on both Windows 10 and macOS. However, the range of functions provided by your system’s password-pro­tec­tion tools are limited. For this reason, we recommend using external software.

Password Protect ZIP Files with Windows System Tools

Microsoft Windows 10 provides a feature for password pro­tect­ing files and folders which is in­te­grat­ed in the operating system. Windows password pro­tec­tion can also protect ZIP files from unau­tho­rized access, without having to use third-party software. To activate password pro­tec­tion for your files, follow these steps:

Note

Windows password pro­tec­tion is only available in the editions Microsoft Windows 10 Pro, Education, and En­ter­prise, not in Windows 10 Home.

Step 1: Using the right mouse button, click on the ZIP file that you would like to password protect.

Step 2: In the shortcut menu, select the “Prop­er­ties” option to open the file prop­er­ties.

Step 3: In the “General” tab, click on “Advanced” in order to open the “Advanced Attribute” dialog window.

Step 4: In the “Advanced At­trib­ut­es” dialog window, select the check box next to “Encrypt contents to secure data”.

Step 5: Close the “Advanced At­trib­ut­es” dialog window by clicking on “OK” and save the change in file prop­er­ties by clicking on “OK” or “Apply”.

The file icon now displays a padlock. This indicates that the cor­re­spond­ing file is password protected. But what does this actually mean?

After you have activated password pro­tec­tion, you’ll note that you can still open the file without a password prompt. File content can also be displayed and processed without changes. Nev­er­the­less, the file is password protected – with a key generated by Windows that is stored in your user account.

You have access to the file as long as you are logged into your user account. By contrast, other users will be denied access. This can be very practical in many sit­u­a­tions. However, only in a few ap­pli­ca­tion cases does it serve as a password-protected ZIP file. For instance, this feature is not intended for sending password-protected ZIP files. For this, we recommend using a com­pres­sion program with an en­cryp­tion feature.

En­crypt­ing File Folders with macOS Standard Tools

Though it’s true the Apple operating system macOS does not offer any native features for password pro­tect­ing ZIP files, you can however protect the di­rec­to­ries – in which ZIP files are located – as image files. To do so, follow these steps:

Step 1: Create a new folder in Finder – macOS’ standard file manager.

Step 2: Relocate all ZIP files that you’d like to protect into the folder you just created.

Step 3: Open the macOS hard drive service program. You can do this via Spotlight search.

Step 4: Click on “File” in the menu bar above and choose “Image from Folder” under “New Image”.

Step 5: Choose the folder you created at the beginning that has the files you wish to protect and click on “Open”.

Step 6: Give the image a name and choose a save location.

Step 7: Choose the type of en­cryp­tion:

  • 128-Bit-AES en­cryp­tion (rec­om­mend­ed)
  • 256-Bit-AES en­cryp­tion (more secure, but slower)

Step 8: Enter a password of your choosing and confirm entry by clicking on “Choose”.

Step 9: Make sure that the image format is set to “Com­pressed” and complete the process by clicking on “Save”.

The encrypted image is created in .dmg format in the save location you specified.

Select the image by double-clicking on it and entering your password to access the password-protected file.

An open .dmg file is displayed as an in­te­grat­ed drive in Finder.

Eject the image via Finder if you are no longer using the protected files. Otherwise, they will remain ac­ces­si­ble without a password prompt.

Note

To make sure that your data is protected from unau­tho­rized access, you should delete the un­en­crypt­ed original data.

Password Pro­tect­ing ZIP Files with Third-Party Software

Since the options for each operating system are limited, we recommend using a third-party program. For example, we have chosen 7-Zip, a free packer ap­pli­ca­tion with a high com­pres­sion rate and reliable en­cryp­tion. It creates archive files in the 7z, TAR, WIM, and ZIP formats. The program’s en­cryp­tion feature is available for 7z and ZIP files.

Follow these steps to create a password-protected archive file for any file folder of your choosing:

Step 1: Download the open-source 7-Zip com­pres­sion program from the provider’s website and install the software on your system.

7-Zip is au­to­mat­i­cal­ly in­te­grat­ed into the Windows Explorer shortcut menu.

Step 2: Using the right mouse button, click on the file folder that you would like to encrypt.

Step 3: Choose “7-Zip” in the shortcut menu and click on “Add to archives…” in the pop-up menu.

Step 4: In the packer program’s con­fig­u­ra­tion mask, you’ll find the required settings for the save location, archive format, com­pres­sion strength, com­pres­sion method, and en­cryp­tion.

Enter a password, then enter it again.

Note

In archive format, 7z is available with AES-256-bit en­cryp­tion. This can also be used for password pro­tect­ing ZIP files. What’s more, the latter can be encrypted with the ZipCrypto algorithm.

Opening an archive file that has been password protected with 7-Zip requires you to enter a password.

Tip

Windows users often utilize the WinZip packer program for password pro­tect­ing ZIP files. The programs WinRAR, Peazip, Bandizip, and Ashampoo Zip Free also offer en­cryp­tion features. We provide you with a detailed com­par­i­son of the range of features in our article on the most popular WinZip al­ter­na­tives.

Go to Main Menu