#!/bin/bash set -e if [[ $# != 2 ]]; then echo "$0 " exit 1 fi function die() { echo "FAIL: $1" exit 1 } ENCODE=$1 CRACK=$2 if [[ ! -r $ENCODE ]]; then die "$ENCODE is is not readable" fi if [[ ! -r $CRACK ]]; then die "$CRACK is is not readable" fi PLAINTEXT=$(cat <