I have some data that I want to encrypt in a single folder. I only need it rarely, so I would like to be asked for a pass phrase every time.
Preferably I could still back up the folder encrypted, and open it with the passphrase on another machine.
What approach shall I take?
If you want a graphical interface that integrates well with gnome, try cryptkeeper.
The home page is here : http://tom.noflag.org.uk/cryptkeeper.html
It is in the ubuntu repositories.
Other options include Truecrypt, ecryptfs, and LUKS.
ecryptfs is also in the ubuntu repository,and should be installed by default, If it is not:
Make an encrypted directory, to be decrytped when you log in with
To make a directory that is not automatically decrypted when you log in you will need root access
Encrypt the directory
You will be asked to enter a passphrase and a number of additional questions. Go with the defaults (hit enter) but answer y (yes) to "Enable filename encryption (y/n) [n]:" to encrypt file names.
Place any data you wish encrypted in ~/secret .
To encrypt the data
To decrypt the data, mount the directory again
To make it easier you can give the options you desire to the mount command with the -o flag (all one line)
Either make an alias in ~/.bashrc or make a custom launcher.