#!/bin/sh # # Encrypt with Blowfish # PW_FILE=~/.passwd if [ $# -gt 0 ]; then pw=pass:$1 else [ -f $PW_FILE ] || { echo "Can't find password file" >&2; exit 1; } pw=file:$PW_FILE fi openssl bf -a -salt -pass $pw .