3 Easy Ways to Protect a Folder With a Password

Download Article
Protect your sensitive files in Windows, macOS, or with a third-party app
Download Article

If you're using macOS or Windows 10 or 11 Pro, Enterprise, or Education Edition, you can use your computer's built-in encryption program to password-protect folders and files. If you have Windows Home Edition, you'll need to install third-party software to protect folders with passwords. This How.com.vn teaches you how to encrypt your files and folders.

Things You Should Know

  • On Windows Pro, right-click a folder and go to "Properties" > "Advanced" > "Encrypt contents to secure data" > "Ok," follow the prompts, then check "Password."
  • On Mac, use Disk Utility to create a password-protected disk image of the folder.
  • On Windows Home, use an app like Wise Folder Hider to password-protect a folder.
Method 1
Method 1 of 3:

Using Windows

Download Article
  1. How.com.vn English: Step 1 Right-click the folder and select Properties.
    You can do this in File Explorer or by right-clicking any folder on your desktop. [1]
    • Windows Pro, Enterprise, and Education Editions have their own built-in file encryption software called BitLocker. BitLocker can be used to encrypt an entire hard drive or individual folders and files.
    • BitLocker is not available on Windows Home Edition. If you are using Home Edition, you will need to use third-party software to encrypt your files and folders.[2]
  2. How.com.vn English: Step 2 Click Advanced.
    It's at the bottom of the Properties window next to "Attributes."
    Advertisement
  3. Step 3 Check "Encrypt contents to secure data" and click OK.
    This starts the process of encrypting your folder.[3]
    • If you want to open a password-protected folder, follow the previous steps up to this point and uncheck this box. Then, enter your password.
  4. Step 4 Select "Apply changes to this folder, subfolders and files" and click Ok.
    It's the second radio option in the "Confirm Attributes Changes" window.[4]
  5. Step 5 Click the "Back up your file encryption key" in the pop-up message.
    You can also find this pop-up message in the Notifications window by clicking the icon that resembles a square-shaped speech box in the Taskbar.
  6. How.com.vn English: Step 6 Insert a USB flash drive in a USB port and click Back up now (recommended).
    This will back up your encryption key to a flash drive. This will help prevent losing access to your files if you forget your password.
    • If you don't have a flash drive, click Back up Later to be reminded next time you log in, or Never back up.
    • Warning: If you don't back up your encryption key, you could lose access to your files if you forget your password.
  7. How.com.vn English: Step 7 Click Next two times.
    First, click Next at the bottom of the Certificate Export Wizard welcome window. Then click Next again to create a new password.
  8. Step 8 Select "Personal Information Exchange - PKCS #12" and click Next.
    This is the default option in the Certificate Export Wizard window. Then click Next in the lower-right corner.
  9. Step 9 Check icon "Password" and enter your password twice.
    To create a new password, click the checkbox next to "Password" and then enter your desired password in the two fields below the checkbox. Make sure you enter the same password both times.
  10. How.com.vn English: Step 10 Click Next.
    It's in the lower-right corner of the Certificate Export Window.
  11. How.com.vn English: Step 11 Go to the USB drive.
    Use the file browser to navigate to the location of your USB drive. This may be a temporary "D:" or "E:" drive.
  12. How.com.vn English: Step 12 Type a name for the certificate and click Save.
    This saves the certificate as a ".pfx" file.
  13. How.com.vn English: Step 13 Click Next and then Finish.
    This finishes the process of encrypting and password-protecting your folder. You can now eject the USB drive and put it in a safe location.
    • If you need to access your folder, follow steps 1 - 4. Then, uncheck the box that says "Encrypt contents to secure data." Then, enter your password to unencrypt the folder.
  14. Advertisement
Method 2
Method 2 of 3:

Using Wise Folder Hider

Download Article
  1. How.com.vn English: Step 1 Download and install Wise Folder Hider.
    Wise Folder Hider is a program you can use to password-protect files and folders, hide files and folders, and create an encrypted drive. You can download the free version of Wise Folder Hider for Windows from https://www.wisecleaner.com/wise-folder-hider.html.
    • Use this method if you have Windows Home Edition.
    • Once downloaded, double-click the file and follow the on-screen instructions to install.
  2. How.com.vn English: Step 2 Open Wise Folder Hider and set a password.
    Wise Folder Hider will usually open automatically after it is installed, but you'll find it in the Start menu if it doesn't. Once open, you'll be prompted to enter a password.
  3. How.com.vn English: Step 3 Drag files into Wise File Hider.
    Drag any files or folders you want to protect with passwords into the app. When you close the app, those files and folders will be locked and hidden inside Wise Folder Hider.
    • Additionally, you can set a separate password for each folder you add. To do so:
      • Click the drop-down menu across from a folder you added under the "Hide File" tab.
      • Click Set Password.
      • Enter the password you want to set for that folder twice and click Ok.
  4. How.com.vn English: Step 4 Open a hidden folder.
    To access a hidden folder, open Wise Folder Hider, enter the password you set, and click Open.
    • To remove a password-protected folder from Wise Folder Hider, click the drop-down menu across from a folder under the "Hide File" tab and select Unhide.
  5. How.com.vn English: Step 5 Create an encrypted drive (optional).
    In addition to locking and hiding folders behind a password-protected app, you can create an encrypted drive that you can use to password-protect your files and folders. If you want to do this, use the following steps to do so:
    • Click the Encrypt File tab.
    • Click Create in the lower-right corner.
    • Enter a name for the encrypted drive (or leave it as the default).
    • Click Browse and select a save location for the encrypted drive (or leave it as the default "Documents" folder).
    • Click Create.
  6. How.com.vn English: Step 6 Set a password for the encrypted drive.
    To do so, open Wise Folder Hider and enter your password. Click the Encrypted File tab. Click the drop-down menu across from the encrypted drive and click Set Password. Enter a password for the drive twice and click Ok.
  7. How.com.vn English: Step 7 Mount the encrypted drive.
    You must mount the drive to access it and add files and folders. To do so, open Wise Folder Hider and enter your password. Click the Encrypt File tab and click Mount across from the encrypted drive. Enter your password for the encrypted drive and click Ok.
  8. How.com.vn English: Step 8 Add files to the encrypted drive.
    Once the encrypted drive is mounted in Wise Folder Hider, it will appear in your list of drives in File Explorer. Press the Windows key + E to open File Explorer. Right-click any files or folders you want to add to the encrypted drive and click Cut. Then open the encrypted drive, right-click, and click Paste.
  9. How.com.vn English: Step 9 Unmount the encrypted drive.
    Once you have added all the files and folders you want to add to the encrypted drive, click Unmount across from the drive in Wise Folder Hider. This will hide the encrypted drive in File Explorer. You must mount it in Wise Folder Hider to display it in File Explorer again.
  10. Advertisement
Method 3
Method 3 of 3:

Using a Mac

Download Article
  1. How.com.vn English: Step 1 Open Disk Utility.
    You can do so quickly by typing disk utility into Spotlight and pressing Return.
  2. How.com.vn English: Step 2 Click the File menu and select New Image.
    This will open a Finder window.
    • On some older Macs, this option may be labeled "Disk Image from Folder" instead.
  3. How.com.vn English: Step 3 Select the folder you want to protect and click Open.
    Click the box at the top of the pop-up window, click your folder's location (e.g., Desktop), click your folder, and click Open.
  4. How.com.vn English: Step 4 Enter a name for your folder.
    Do so in the "Save As" field.
  5. Step 5 Click the "Encryption" drop-down box and select 128-bit AES encryption.
    It's in the "Encryption" drop-down menu.
  6. How.com.vn English: Step 6 Select read/write as the Image Format.
    This option will allow you to add and remove files to your encrypted folder later.
  7. How.com.vn English: Step 7 Click Save.
    This button is in the bottom-right corner of the window.
  8. How.com.vn English: Step 8 Create a password and click Choose.
    Enter a password you want to set for your folder in the "Password" field and enter it again in the "Verify" field to confirm. Your passwords must match to continue.
  9. How.com.vn English: Step 9 Click OK and then Done.
    If you named your image the same thing as your original folder, click Replace when prompted to replace the folder. Once you click Done, your new password-protected folder will appear as a .dmg file.
    • You can delete the original folder you used to create the password-protected folder if you want. Your files are safe in the ".dmg" that was just created.
  10. How.com.vn English: Step 10 Open the password-protected folder.
    To access files in your protected folder, double-click the newly created ".dmg" file, enter the password you set, and click OK. Your folder will open as a mounted virtual "drive" on the desktop. Once unlocked, this will open a window and display your files.
  11. How.com.vn English: Step 11 Lock the folder again.
    When you are done, you can lock the folder again by "Ejecting" the drive that was opened in one of the following ways:
    • Click and drag the drive's icon to the trash.
    • Right-click on the icon and select Eject "[Your Folder Name]"
    • Click the eject button next to your folder's name in the Finder window on the left.
  12. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How can I unlock a folder?
    How.com.vn English: Community Answer
    Community Answer
    Double click on the .bat file and type in the password you made for it when the command prompt menu opens up.
  • Question
    How do I change the name of the folder created by the .bat file?
    How.com.vn English: Community Answer
    Community Answer
    Right click on the folder, then click "rename." Type the new folder name, then hit "enter."
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • You should create an unprotected backup of any folder you plan on password-protecting. You can do this on an external hard drive or a cloud drive.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • If you forget your folder's password, you may permanently lose access to the respective files.


      Advertisement

      About This Article

      How.com.vn English: Travis Boylls
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for How.com.vn. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 1,289,772 times.
      How helpful is this?
      Co-authors: 31
      Updated: December 4, 2023
      Views: 1,289,772
      Categories: File Manipulation
      Thanks to all authors for creating a page that has been read 1,289,772 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement