How to password protect a folder on Windows and MacOS

Keep your offline data even safer by password protecting it. Here's how

how to password protect folder passwordprotectfolder
weerapat/123RF

Everyone has their secrets. Whether you want to shield your Christmas present list from the prying eyes of nosy children, or merely keep your tax records hidden, limiting access to your digital data is understandable, and with a few steps, perfectly viable. In this guide, we’ll teach you how to password protect a folder, whether you’re running Windows or MacOS.

The only difficulty is that neither of these operating systems makes it as easy as it could be. Native password protection is something that remains elusive in most standard builds, but with the right know-how, that’s not a problem. Whether you end up using third-party recommendations or a built-in utility, here’s how to protect your folders from prying eyes.

Note: If you ever need help remembering passwords, consider one of the best password managers.

Windows 10 Pro folder encryption

If you’re running Windows 10 Pro, there is a built-in protection system, though it’s not the most fully featured. Windows 10 Pro’s basic encryption offers file obfuscation that locks a file to your account. That way, if someone on another account or someone who copied your files away to another PC, tried to access your content, they’d need to know your account password — which better not be one of the most common passwords.

Anyone using your PC and account would still have access, however.

Step 1: Right-click on your chosen file and select Properties from the drop-down menu.

Step 2: Click Advanced.

Step 3: Tick the box next to Encrypt contents to secure data and click OK.

Step 4: Click Apply and when prompted, choose whether you want all folders within that directory to be encrypted, or merely the top-level one. When you’ve decided, click OK.

Depending on the size and contents of the folder, it may take a while to complete, but once it’s done, your data will be encrypted and protected from the prying eyes of anyone on another account or system. You can tell that it’s worked by the little padlock symbols now on each file within. Your files are now password protected by your account.

Password protecting Windows folders with 7Zip

While Windows 10 Pro might have some protections, most versions of Windows are utterly devoid of any folder-specific security. For most Windows users, adding a password to a folder requires a third-party archiving utility or some form of compression software. Options include 7-Zip, an open-source zip compression utility that’s readily available for free courtesy of Russian developer Igor Pavlov. It does a great job of password-protecting your more important data.

You’ll be required to decompress the folder before use, but that’s a small price to pay for security.

Step 1: Navigate to the 7-Zip download page and select the right download for you. Most users should opt for the 64-bit x64 Windows build. Once downloaded, install it as you would any other software and run it.

Step 2: Locate the folder you wish to password protect within the main 7-Zip interface and click the green addition sign in the upper-left corner of the application. Alternatively, drag and drop the folder anywhere within the main 7-Zip interface.

Zip open

Step 3: Ignoring the bulk of presets in the resulting pop-up window, select zip from the drop-down menu directly beside the Archive Format option to ensure the folder remains compatible on computers without 7-Zip installed. Then, enter and re-enter your desired password for the folder in the text fields located on the right-hand side of the window. Click the OK button when finished and allow the utility to create a compressed, encrypted duplicate of the folder you wish to password protect.

Add Password Zip

Step 4: Once the password-protected zip file has been created, test it to make sure that it’s working correctly by trying to access any of the content held within. Once you know it’s properly protected, delete the original folder so it can no longer be accessed. There’s no need to have two instances of the same data, especially since the original folder will remain unprotected.

Password Protected Windows

Adding password protection to folders in MacOS

Like most versions of Windows, Apple’s MacOS lacks the native ability to add password protection to folders, but what you lose in convenience, you definitely gain in security — just don’t forget an antivirus. Adding a rudimentary password will require you to create an encrypted disk image through the operating system’s native “Disk Utility” — an application that comes pre-installed on nearly all Mac devices. Once created, you’ll be able to access the folder as a mounted virtual disk, which will allow you to edit, add, and delete content after entering a designated password. Any changes you make while the disk is mounted will automatically become both encrypted and password-protected upon dragging the disk to the Trash.

Step 1: Navigate to the MacOS Disk Utility within the Applications folder, or search for the application using Spotlight. When found, launch the program.

Open Disk Utility

Step 2: Click File in the application toolbar, select New from the resulting drop-down menu, followed by Disk Image from Folder. Then, locate the folder you wish to password protect by perusing the resulting folder, highlighting it, and clicking the Image button in the bottom-right corner of the window.

Alternatively, search for the folder using the search bar in the upper-right corner and click the Image button in the bottom-right corner of the window.

Create Image Disk Utility

Step 3: Once you’ve tagged and named the resulting files, select read/write from the drop-down menu directly right of the “Image Format” option, followed by 128-bit AES encryption from the drop-down menu directly right of the Encryption option. Afterward, choose your desired save location and click the Save button in the bottom-right corner when finished.

New Image Disk Image

Step 4: When prompted, enter and re-enter your desired password in the text fields in the middle of the pop-up window. Afterward, uncheck the box directly left of Remember password in my keychain and click the “OK” button in the bottom-right of the window.

Password Folder

Step 5: Once the password-protected disk image has been created, make sure it works as intended by trying to access its content. Once it’s confirmed to be protected as intended, delete the original folder so it can no longer be accessed.

Protected Disk
Computing

Former student uses USB Killer device to fry $58,000 worth of college’s PCs

A former student used a USB Killer device to short circuit more than $58,000 of computers at a private New York college earlier this year. The student pled guilty to the charges and sentencing is scheduled to begin in August.
Mobile

Keep your huge phone beautiful with the best iPhone XS Max cases

Apple's iPhone XS Max might be the best large phone the company has ever released. But a bigger OLED display and body means there's more glass to crack. Keep your massive phone safe with the best iPhone XS Max cases.
Gaming

How to share your best gaming moments with friends on the PS4

Check out Digital Trends' quick guide to everything you need to know to save your outstanding PlayStation 4 gameplay moments, share them online, and transfer them to your computer.
Movies & TV

Did I really watch that? Here's how to delete your Netflix viewing history

Everybody has some skeletons in their streaming closet, but you don't have to live with them if you don't want to. Learning how to delete your Netflix viewing history is easy, and we're here to help.
Gaming

Here’s how to set up a virtual private network (VPN) on your Xbox One

Online privacy is more important now than it's ever been, and gaming is happening online more than ever before. Here's a quick guide on how to set up a VPN for your Xbox One so you game in safe anonymity.
Computing

AMD Ryzen CPU prices get slashed ahead of Ryzen 3000 release

AMD's Ryzen CPUs have had their prices slashed as we edge towards the release of their third generation. Whether you're a gamer or someone who needs multi-threaded performance, there's a deal for everyone with some heavy discounts to take…
Computing

The number pad on HP’s Chromebook 15 makes spreadsheet work a breeze

HP's Chromebook 15 comes with a 15.6-inch display, a metal keyboard deck with full-size keys, and a dedicated number pad, making it the second Chromebook model, following Acer's Chromebook 715, to be suited for spreadsheet work.
Computing

Worried about your online privacy? We tested the best VPN services

Browsing the web can be less secure than most users would hope. If that concerns you, a virtual private network — aka a VPN — is a decent solution. Check out a few of the best VPN services on the market.
Computing

Gaming on a laptop has never been better. These are your best options

Gaming desktops are powerful, but they tie you down to your desk. For those of us who prefer a more mobile experience, here are the best gaming laptops on the market, ranging from budget machines to maxed-out, wallet-emptying PCs.
Computing

Here's how you can download the best free music players for your Mac

Tired of your Mac's default music player? Take a look at our picks for the best free music players available for your Apple rig. Whether you're a casual listener or an audiophile, you're sure to find something that fits your needs here.
Computing

Want to make calls across the internet for less? Try these great VOIP services

Voice over IP services are getting more and more popular, but there are still a few that stand above the pack. In this guide, we'll give you a few options for the best VOIP services for home and business users.
Gaming

Transform into the ultimate leader with our tips and tricks for Civilization 6

Civilization VI offers both series veterans and total newcomers a lot to chew on from the get-go. Here are some essential starting tips to help you master the game's many intricacies.
Computing

AMD’s 2020 Ryzen CPUs could have a big boost in power efficiency

The sequel to AMD's Zen 2-based Ryzen 3000 CPUs is slated for a 2020 release and when it arrives, could leverage the new Zen 3 architecture to deliver impressive gains to performance and power efficiency.
Computing

The iPhone’s Screen Time and Siri Shortcuts could land on Macs this year

For its desktop computers, it appears that Apple may continue to draw from the iPhone for inspiration. iOS 12 features, like Screen Time and Siri Shortcuts, are believed to be making their way to MacOS this year at WWDC in June.