encrypt.sh #!/bin/bash infile=$1 outfile=${infile}.enc if [ -f ${infile} ]; then if [ -f ${outfile} ]; then echo "target file ${outfile} already exists" exit 1 fi printf "Enter encryption password: " read pass if [ -z ${pass} ]; then echo "No password provided, using default: biscuit" pass=biscuit fi cat ${infile} |openssl enc -base64 -e -aes-256-cbc -nosalt