Skip to content

Instantly share code, notes, and snippets.

@trevorrjohn
Last active August 29, 2015 14:19
Show Gist options
  • Save trevorrjohn/280f94917d4850a68c27 to your computer and use it in GitHub Desktop.
Save trevorrjohn/280f94917d4850a68c27 to your computer and use it in GitHub Desktop.
OSX Encrypt Folder Instructions

Encrypt a File OSX

Instructions on to encrypt a file on OSX 10.9. Based of this StackOverflow post.

Requirements

  • Homebrew
  • osxfuse brew install Caskroom/cask/osxfuse
  • encfs brew install encfs

Mount encrypted folder

mkdir ~/.encrypted ~/encrypted # **Note** The absolute path is required
encfs ~/.encrypted ~/encrypted # I used the 'p' options and then entered a password

Add files to the ~/encrypted folder. You can use this folder like any other, while it is mounted.

To unmount and thus hide the content of folder:

umount ~/encrypted

The contents of the folder will no longer exist in ~/encrypted while the data will be encrypted in the ~/.encrypted folder.

To view the contents of the ~/encrypted folder.

encfs ~/.encrypted ~/encrypted # and enter the password

Store all the files!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment