Hola:
Para la sint?xis b?sica en los scripts pod?s usar man bash (o man sh) o fijate si no ac? ten?s el manual de referencia de bash
http://www.gnu.org/software/bash/manual/bashref.html Respecto a la encriptaci?n, is quer?s usar Triple-DES prob? esto:
Encriptar
openssl des3 -salt -in infile.txt -out encryptedfile.txt
Desencriptar:
openssl des3 -d -salt -in encryptedfile.txt -out normalfile.txt
Ac? te dejo un link con unos ejemplos en bash...
http://linuxtidbits.wordpress.com/2009/01/12/encryptingdecrypting-a-file-easily-with-a-couple-bash-scripts/ Sin password tambi?n lo pod?s hacer con GPG
Encriptar:
echo password | gpg --batch -q --passphrase-fd 0 --cipher-algo AES256 -c /tmp/file.tgz
Desencriptar:
echo password | gpg --batch -q -o /tmp/file.tgz --passphrase-fd 0 --decrypt /tmp/file.tgz.gpg
suerte,
Pablo Jorge Sanguinetti