Disclaimer: We sustain our work & review products through paid collaborations.
How to Use Password Protection on Files and Folders

How to Use Password Protection on Files and Folders


There’s a false belief that computers are safe because accounts are password-protected. However, that’s not entirely true as users that share a computer can easily access each other’s files or folders. If a device is stolen, then a criminal will be able to remove the stolen computer’s hard disk and install it on another device, gaining access to everything stored on the disk. For these reasons, confidential documents should always be protected by a password.

How to use password protection on files and folders

How to password protect files and folders on MacOS

How to password protect files and folders on MacOS

Mac users that are running Mac OS X 10.6 Snow Leopard or later can protect their data without needing third-party software. To do so, they have to:

  1. Open the ‘Applications’ folder
  2. Open the ‘Utilities’ folder
  3. Open ‘Disk Utility’
  4. Click on ‘File’
  5. Select ‘Image from Folder’ under ‘New Image’
  6. Select the folder you wish to protect and click ‘Open’
  7. Click on the ‘Image Format’ option menu and select ‘read/write’
  8. Click on the ‘Encryption’ menu and select the desired encryption algorithm
  9. Enter the desired password, verify it, and click ‘Choose’
  10. Name the locked disk image and click ‘Save’
  11. When the operation completes, click ‘Done’

After all the steps, the folder is then turned into a password-protected image file with a DMG extension. When you open the file, it will open the way a disk normally would, meaning that you can add new documents to your heart’s content before ejecting it.

How to password protect files and folders on Windows

 

How to password protect files and folders on Windows

Windows users are not as lucky since there isn’t a direct way to password-protect files or folders. There are, however, a few workarounds that you can do without having to pay a dime.

Password protect files by creating a small program

One of the ways to protect folders with a password is by creating a small program yourself that can then be executed through the Windows commands. Laptop Mag has a thorough step-by-step guide on how to do this and, if you follow the instructions carefully, you won’t have any problems creating the program yourself. However, take into account that it isn’t a bullet-proof solution and can be reverse engineered by someone who understands the process.

Password protect files on Windows through encrypting ThemEncryption

Windows Pro users have the functionality to encrypt files and folders. To do so, they need to:

  1. Right-click on the file (or folder) you want to encrypt
  2. Select ‘Properties’
  3. Click on the advanced button under the ‘General’ tab
  4. Check the box ‘Encrypt contents to secure data’
  5. Press ‘OK’
  6. Click ‘Apply’

After following these steps, everything inside the folder will be encrypted using your account username and password. However, this is far from perfect. Although other accounts using the computer won’t be able to open the encrypted files, anyone that has access to your profile and logs in with your account can open the files with no issues.

Password protect files by zipping them

Another free option is by zipping the files or folders that require protection. This process requires an extra step compared to the other options, but it’s also the most reliable solution. After downloading and installing a file archiver such as 7-Zip, you’ll have to:

  1. Right-click on the folder (or file) to encrypt
  2. Select ‘7-Zip’ and then ‘Add to archive’
  3. In the ‘General’ tab, under ‘Encryption’, enter the password twice
  4. Select AES-256 under the ‘Encryption method’ for better security
  5. Select ‘OK’
60% off RoboForm for Best Reviews readers
RoboForm logo
Commit to RoboForm using Best Reviews' exclusive discount and enjoy a discount of 60% off the regular price.
/goto/roboform/ Click to show code

When you’re done with the steps above, a compressed folder will appear. If anyone tries to extract the files, the software will ask for a password before displaying the compressed data. Bear in mind that it’s imperative to delete the original data after ensuring that you’ve done everything correctly, and all files are inside the compressed folder. Also be aware that this process, and those mentioned earlier, do not protect the files from being deleted, even without having to enter a password.

If you don’t want to go through so much trouble, then the best you can do is get a piece of software that specializes in creating passwords for files and folders. Although password managers don’t focus on this, some of them offer a dedicated space on their vaults for encrypted files. Users that take this route will have their confidential data hidden behind a master password, protecting all information from everyone that doesn’t have the key.

Using password managers to remember files passwords

For higher security, you should create complex and unique passwords for each file/folder that requires protection. The main problem is that remembering so many difficult sequences is impossible for the human brain, and if you forget the code, you’ll no longer be able to access the information ever again. So, getting a password manager to store all your files’ passwords is advisable. Furthermore, if you need to send the password-protected files to someone, password managers are also one of the most secure ways to share the decryption key.


Best password managers of 2025

Editors' choice

RoboForm

Editor's rating:
Effective security center
Passkey compatibility
Intuitive and organized interface
Affordable prices
Families

LastPass

Editor's rating:
Logical interface
Automated password categorization
Advanced mobile version
Various two-factor authentication options
Businesses

1Password

Editor's rating:
End-to-end encryption
Secure authentication method
Data breach alarms
One-time password support
Security features

Keeper

Editor's rating:
Robust security
Wide range of platform support
Affordable
Great customer support
Personal use

NordPass Personal

Editor's rating:
Strong security features
Effective password generator
Excellent free version
Attractive price
Password sharing

Dashlane

Editor's rating:
Password changer
Built-in VPN
Flawless data import
Thorough iOS/Android app
Local storage

Enpass

Editor's rating:
Packed with features
Free for desktop users
Offline password manager
End-to-end encryption

Discussions

Share your thoughts, ask questions, and connect with other users. Your feedback helps our community make better decisions.

©2012-2025 Best Reviews, a clovio brand – All rights reserved