How to Protect a Zip File with a Password on PC or Mac
Method 1 of 2:
Using WinRAR for Windows
- Install WinRAR on your PC. If you don't already have this free archive tool, see Use WinRAR to learn how to get it.
- Press ⊞ Win+E. This opens the File Explorer.
- Browse to the folder with the files you want to zip.
- Select the file(s) and/or folder(s) you want to zip. To select more than one file and/or folder at a time, hold Ctrl as you click each file or folder name.
- Right-click the highlighted file(s). A context menu will expand.
- Click Add to archive…. This opens a WinRAR window called 'Archive name and parameters.'
- Name the file. You can type a different file name by erasing the default under "Archive name."
- Leave ".zip' at the end of the file name to show that it's a zip file. For example, archive.zip.
- Select ZIP under 'Archive format.'
- Click Set password…. It's at the bottom-right corner of the window. A password entry window will appear.
- Enter and confirm a password. You must type the password exactly the same into both blanks.
- Click OK. It's at the bottom-left corner of the password window.
- Click OK. It's at the bottom-center part of the archive window. This creates the zip file and protects it with the password you entered.
Method 2 of 2:
Using Zip for macOS
- Open a Terminal window on your Mac. You'll find Terminal in the Applications folder in a sub-folder called Utilities.
- Type zip -er at the command line and press ⏎ Return. This tells your Mac to create an encrypted zip file.
- Type the name and location of the zip file you want to create, followed by a space. Make sure to end the new file name with '.zip' to show it's a zip file.
- For example, if you want to create a zip file called Archive.zip on your desktop, type ~Desktop/Archive.zip and then type a space.
- Type the name of the folder you want to zip and press ⏎ Return. Type this right after the space after the path to the new zip file. You'll then be prompted to enter a password.
- For example, if you want to zip a folder on your desktop called Samples, type ~Desktop/Samples after the space and press ⏎ Return.
- The entire command would look like this ~Desktop/Archive.zip ~Desktop/Samples.
- Type a password and press ⏎ Return. This is the password you'll need to enter when unzipping the archive. A confirmation message will appear.
- Re-enter the password and press ⏎ Return. This compresses the folder and files into a password-protected zip file.
5 ★ | 1 Vote
You should read it
- Can a ZIP archive have 2 passwords? Why is that?
- How to remove PDF file password
- Password setting tools for PDF files
- How to set Excel password to secure data file
- Forgot password protected Excel file, what should you do?
- Archive Extractor - Free online decompression tool with over 70 different file formats
- How to Set Password for Folder and File in Windows
- How to set a password for a PDF file?
May be interested
- How to Establish a Secure Connectionwhile you're browsing the web on safari on mac, you might get a loading error that says something like 'safari can't open the page because it can't establish a secure connection.' if macos detects that a server has a weak encryption or if...
- How to Use Siri on a Macfor a long time, apple's intelligent personal assistant siri was only available on certain versions of the iphone. with apple's operating system macos sierra, apple computer owners can now use siri to initiate a ton of tasks without...
- How to Use Tabs in macOStabbed browsing is a staple of mac computers, but for a long time was only available on web browsers. starting with the late 2016 release of macos sierra, you can use tabs on apps that previously restricted you to a single work station at...
- How to Set a Keyboard Shortcut to Open Spotlightto open spotlight using the default keyboard shortcut, press the command key (⌘) and tap the space bar. you can also click on the magnifying glass in the menu bar or set your own, custom keyboard shortcut using the 'keyboard' settings u...
- How to Change the Time Format on a Macyou can switch between a 12-hour clock and a 24-hour clock in the 'language & region' section of the system preferences menu. this is also dictated by the region you've selected. if you want to customize the way your clock is laid out, you...
- How to Use Apple Pay on a Macwith macos, apple pay is now available to use as a payment method on supported online shopping websites. to use apple pay in macos, you'll need to have an apple pay-enabled iphone or apple watch. you'll also need to use safari on your mac,...