There is a task - to encrypt several documents and firefox profile. Include FileVault for this, anyway, that beat flies with dumbbells. There is no desire to install extraneous software either. Here is the solution:
Run Disk Utility. We read in the help: "If you have confidential disk images." And then step by step instructions.
We do everything according to the instructions, only in the “Image Format” we select the “sparse bundle disk image” (this feature will make our disk not an entire-round disc, but a rifled loaf, 8 meters each). Let's give the loaf a name - “secret”, let it be the size of the DVD, and save it in the home directory:

Next you need to enter a password and remember it in the key keeper:

')
The disk was created, it is clear that the total capacity of 4.7 gigabytes. Naked bundle takes 45 mb:

Parts of the bundle:

Now for the order we create on the encrypted disk the directory structure “/ Library / Application Support /” and move the directory “Firefox” from the home “~ / Library / Application Support /” there:

Make alias / alias:

Move it back to “~ / Library / Application Support /” and rename it to “Firefox”:

You can also make a folder “/ Documents /”, create alias for it under the name “Important”:

And transfer “Important” to “~ / Documents /”:

From the auditorium it is suggested that the alias and the symlink are not the same thing. Some programs with alias do not work (for example, “Adium” and “Address Book”). Therefore it is better to create symlinks immediately. So, we moved “Firefox /” to “/ Volumes / secret / Library / Application \ Support / Firefox /” (by dragging the mouse with the clamped command, or using “mv” in the console). We open the terminal, we do the symlink:
ln -s / Volumes / secret / Library / Application \ Support / Firefox / ~ / Library / Application \ Support / Firefox
And for the "important":
ln -s / Volumes / secret / Documents / ~ / Documents / Important
Well, for the rest as well.
Alias ​​has advantages and disadvantages:
“But another, better reason is that Mac. If you want to make it, then you need to move it to So in this respect, they are better than sym links.
It is more versatile than symbolic links. For example: an image of a disk image. If you’re not already mounted, you’re not always mounted. In the case of the computer, it will be an interesting way to get it. , mount it and provide you the file. But unfortunately, aliases do not work from the command line. ”
Now we make a bundle auto-install at login:

Well, hide it:
1. We throw out the mounted disk from the sidebar of the finder.
2. If it is Xcode, you can completely hide the file. We open the terminal:
“SetFile -a V secret.sparsebundle /” - hide,
"SetFile -av secret.sparsebundle /" - show.
If you need to look into the disk, it is always available by “command-shift-c” in the file (when mounted).
In addition to the “Firefox” profile and documents, in the encrypted section I store the “Mail”, “Adium” and “Address Book” files.
Naturally your account in the system should be closed with a password, otherwise the idea does not make sense. An exception may be the case when the password is not stored in the key house, but in the mind and the bundle is mounted only when necessary.
I think if the bundle is placed in the Dropbox catalog, you will get online auto backup (when the bundle is cut to 8 meters, it will be easier to backup). But I did not try this trick because of the speed of the Internet.
PS I apologize for being very chewed.