3 Solid Ways to Hide and Encrypt Files and Folders on Mac

Khamosh Pathak

Hide Files

If you’ve used a Mac long enough, you’ve surely wondered how to hide a file. It could be important work documents you don’t want anyone to see, or something a bit more personal in nature. No matter what it may be, today we’ll talk about three solid ways to hide files on your Mac.

1. Using Terminal

First, we can use a simple terminalcommand to hide folders from prying eyes. Open the Terminal and enter the following command:

chflags hidden (Path to the file here)

Hide Files

Before pressing Enter, drag the folder or file in question to the Terminal and the path will show up. You can of course type the path manually as well. Just remember that if your folder/file has spaces, turn them into dashes first.

Now the contents of the folder are hidden. There are two ways to unhide them. You can either unhide the specific folder or do so for all hidden folders on the system.

Unhide Specific Location

Hide Files

To do so for just the folder we hid, use the following command:

chflags nohidden (Path to the file here)

If you’re coming back after a couple of days to unhide it and want a quick way to know the path for the file hidden, write the following command:

history

This will bring up all the commands you’ve typed. Copy the path name to the chflags nohidden command and press Enter.

Unhide All Hidden Folders

To unhide all hidden folders, type the following command:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

If you’re using a Mac that’s running Mountain Lion or below, you’ll have to capitalize the F in com.apple.finder.

To hide all the files again in the same fashion, use the following command.

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

2. Using Obscurity

Obscurity is a shell app. Download the .dmg from here, open it and drag the Obscurity folder to anywhere on your system.

Hide Files

Now, right-click on the folder and select See package contents.

Hide Files

Here, drag in any files and they’ll be saved secretly. Anyone who merely clicks the Obscurity folder will not be able to access the files. You can of course change the name of the folder.

3. Encrypt Files

The next level on the security chain, after hiding files, is encrypting them. You can do this using your Disk Utility.

Hide Files

Open Disk Utility and go to File > New > Disk Image from Folder.

Hide Files

Select the folder you want to encrypt and don’t forget to select 256-bit AES encryption from the Encryption drop-down menu.

Hide Files

Assign a password for authentication.

Hide Files

That’s it, your files are now protected.

How Do You Keep Your Mac Secure?

Did you know: Mac offers FireVault encryption that encrypts everything on your Mac. That means even if a person gets hold of your Mac, they can’t get to your data without your password.

What do you do to make your Mac secure? Let us know in the comments below.

Also See
#encryption#Lists

Join the newsletter