To encrypt a file:
openssl des3 -salt -in infile.txt -out encryptedfile.txt
To decrypt the file:
openssl des3 -d -salt -in encryptedfile.txt -out normalfile.txt
Do not specify the same file as input and output on encryption.. I have noticed weird effects on OS X (it eats the file). Remove the -in * stuff if you want to pipe data into it (e.g. a tarred folder). Omit the -out * stuff if you want it to pipe data out on STDOUT.
Also, for anyone having GnuPG installed:
Asks for password and creates encrypted file.gpg with symmetric cipher (default is CAST5, but I'd suggest adding --cipher-algo AES256 ;-)). Of course, asks for password.
Decrypting is pretty easy too:
Seems to `detect' the cipher used and, obviously, asks for password.
It's possible to include the password from file (--passphrase-file file) or even on the commandline (lol, security. --passphrase string).