ccrypt is an encryption tool that can be used to encrypt sensitive data on the fly or for long term storage. I sometimes use it to encrypt passwords for safe keeping.

Install:

sudo apt-get install ccrypt

Encrypt a file:

ccencrypt file.txt

Decrypt a file:

ccdecrypt file.txt.cpt